[ros-users] cmd_vel topic has no attribute linear

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
+ (text/plain)
Delete this message
Reply to this message
Author: hitesh dhiman
Date:  
To: ros-users
Subject: [ros-users] cmd_vel topic has no attribute linear
Hi all,
I'm trying to subscribe to the cmd_vel message, According to the definition,
the message is of type Twist, with 2 vectors linear and angular.
My node to access this topic is in python.
For example, if the subscriber is vel = rospy.Subscriber("/cmd_vel", Twist)
if i try to print out vel.linear, it gives an attribute error, stating the
subscriber object has no attribute linear.

Any idea what I'm doing wrong here?

--
Regards,
Hitesh Dhiman
Electrical Engineering
National University of Singapore
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev_______________________________________________
ros-users mailing list

https://lists.sourceforge.net/lists/listinfo/ros-users