[ros-users] cmd_vel topic has no attribute linear

Ken Conley kwc at willowgarage.com
Sun Apr 18 19:00:56 UTC 2010


Hi Hitesh,

If you follow the rospy tutorials for publishing and subscribing [1]
you will be able to subscribe to any type of ROS topic, including
cmd_vel, and extract the fields that you want.

[1] http://www.ros.org/wiki/rospy/Tutorials

 - Ken

On Sun, Apr 18, 2010 at 11:55 AM, hitesh dhiman
<hitesh.dhiman.1988 at gmail.com> wrote:
> Hi ken,
> Well I think you're correct. If I just do a print vel, it says subscriber
> object at 'address'...Basically what I'm doing is getting the cmd_vel
> published from navigation stack.
> On this note, is it possible to find out the correct way to get the linear
> and angular velocities from cmd_vel ?
>
> On Apr 19, 2010 2:34 AM, "Ken Conley" <kwc at willowgarage.com> wrote:
>
> Hi hitesh,
>
> 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.
>
> Ken
>
>> > On Apr 18, 2010 9:43 AM, "hitesh dhiman" <hitesh.dhiman.1988 at gmail.com>
>> > wrote: > > Hi all, > I'...
>
> ------------------------------------------------------------------------------
> 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
> ros-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ros-users
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>



More information about the ros-users mailing list