Re: [ros-users] cmd_vel topic has no attribute linear

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ken Conley
Date:  
To: ros-users
Subject: Re: [ros-users] cmd_vel topic has no attribute linear
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
<> 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" <> 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" <>
>> > wrote: > > Hi all, > I'...
>
> ------------------------------------------------------------------------------
> Download Intel&#174; 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
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>
>