Ask Your Question
0

how to get the data from subscriber

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

apalomer gravatar image

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

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 -0500

dornhege gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 2,644 times

Last updated: Nov 28 '11