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

how to get the data from subscriber

asked 2011-11-27 21:58:19 -0600

apalomer gravatar image

updated 2011-11-27 23:42:22 -0600

Hi,

In python I have this:

self.cmd_vel_sub = rospy.Subscriber('cmd_vel', Twist, self.cmd_vel)

and I need to access the angular velocity of this subscriber. How can I do it?

I've tried:

self.cmd_vel_sub[1][2]

self.cmd_vel_sub.angle.z

But non work.

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2011-11-28 00:47:00 -0600

dornhege gravatar image

Go through the basic tutorials http://www.ros.org/wiki/ROS/Tutorials especially 11.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-11-27 21:58:19 -0600

Seen: 6,087 times

Last updated: Nov 28 '11