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