ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

remap to part of message

asked 2016-06-21 05:59:48 -0600

Orangelynx gravatar image

Hi. I have written my first node - a Quaternion to euler conversion node (using the tf library). The node subscribes to geometry_msgs::Quaternion and publishes geometry_msgs::Vector3.

I now want to connect this node to the quaternion part of a pose message that's published by another node.

So i used this command:

rosrun mypkg quat_to_euler_conv quaternion:=ground_truth/pose/orientation

because pose/orientation is of type geometry_msgs::Quaternion i think this should work. but it doesn't connect. using rostopic echo and pub i can make the node work fine though.

Is it maybe not possible to remap a topic to a message part of another topic?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-03-16 18:01:46 -0600

AA gravatar image
edit flag offensive delete link more

Comments

To add to the answer of @AA:

Is it maybe not possible to remap a topic to a message part of another topic?

No, that is not possible. rostopic uses some tricks internally to allow this, but the regular remapping infrastructure does not support remapping parts of msgs.

gvdhoorn gravatar image gvdhoorn  ( 2017-03-17 01:18:27 -0600 )edit

Question Tools

Stats

Asked: 2016-06-21 05:59:48 -0600

Seen: 482 times

Last updated: Mar 16 '17