<p>Hi hitesh,</p>
<p>It would help if you cut and paste the exact error message and include a sample program. I suspect that the program is using the subscriber object instead of the message object, but this is hard to tell without more information. </p>

<p>Ken</p>
<p><blockquote type="cite">On Apr 18, 2010 9:43 AM, "hitesh dhiman" <<a href="mailto:hitesh.dhiman.1988@gmail.com">hitesh.dhiman.1988@gmail.com</a>> wrote:<br><br>Hi all,<br>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.<br>
My node to access this topic is in python.<br>For example, if the subscriber is vel = rospy.Subscriber("/cmd_vel", Twist)<br>
if i try to print out vel.linear, it gives an attribute error, stating the subscriber object has no attribute linear.<br><br>Any idea what I'm doing wrong here?<br clear="all"><font color="#888888"><br>-- <br>Regards,<br>
Hitesh Dhiman<br>Electrical Engineering<br>
National University of Singapore<br>
<div style="display:inline"></div>
</font><br>------------------------------------------------------------------------------<br>
Download Intel&#174; Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@lists.sourceforge.net">ros-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/ros-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/ros-users</a><br>
<br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></p>