ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Finally I found the answer. Looking at morse initialization, there was the following message:
[WARN] [WallTime: 1400249615.593493] Could not process inbound connection: topic types do not match: [geometry_msgs/Pose] vs. [geometry_msgs/PoseStamped]{'topic': '/bee/pose', 'tcp_nodelay': '0', 'md5sum': 'e45d45a5a1ce597b249e23fb30fc871f', 'type': 'geometry_msgs/Pose', 'callerid': '/plan_node'}
So I changed the callback method:
void chatterCallback(const geometry_msgs::PoseStamped& msg)
{
geometry_msgs::Point coord = msg.pose.position;
ROS_INFO("Current position: (%g, %g, %g)", coord.x, coord.y, coord.z);
}
and don't forget to include:
#include "geometry_msgs/PoseStamped.h"
2 | No.2 Revision |
Finally I found the answer.
answer.
Looking at morse initialization, there was the following message:
[WARN] [WallTime: 1400249615.593493] Could not process inbound connection: topic types do not match: [geometry_msgs/Pose] vs. [geometry_msgs/PoseStamped]{'topic': '/bee/pose', 'tcp_nodelay': '0', 'md5sum': 'e45d45a5a1ce597b249e23fb30fc871f', 'type': 'geometry_msgs/Pose', 'callerid': '/plan_node'}
So I changed the callback method:
void chatterCallback(const geometry_msgs::PoseStamped& msg)
{
geometry_msgs::Point coord = msg.pose.position;
ROS_INFO("Current position: (%g, %g, %g)", coord.x, coord.y, coord.z);
}
and don't forget to include:
#include "geometry_msgs/PoseStamped.h"
3 | No.3 Revision |
Finally I found the answer.
Looking at morse initialization, there was the following message:
[WARN] [WallTime: 1400249615.593493] Could not process inbound connection: topic types do not match: [geometry_msgs/Pose] vs. [geometry_msgs/PoseStamped]{'topic': '/bee/pose', 'tcp_nodelay': '0', 'md5sum': 'e45d45a5a1ce597b249e23fb30fc871f', 'type': 'geometry_msgs/Pose', 'callerid': So I changed the callback method:
void chatterCallback(const geometry_msgs::PoseStamped& msg)
{
geometry_msgs::Point coord = msg.pose.position;
ROS_INFO("Current position: (%g, %g, %g)", coord.x, coord.y, coord.z);
}
and don't forget to include:
#include "geometry_msgs/PoseStamped.h"