[ros-users] running move_base and stageros at 100Hz
eitan at willowgarage.com
Tue Nov 30 23:55:29 UTC 2010
On Tue, Nov 30, 2010 at 3:39 PM, FrederikHeger <frederik.heger at vecna.com>wrote:
> I am trying to switch from running move_base with the default
> trajectory_planner_ros and a stage simulation at 10Hz (working) to the same
> thing but running at 100Hz. This is in preparation of running things on a
> real robot in the future.
> I changed the controller_frequency parameter in move_base.xml (changed to
> 100) and the interval_sim parameter (changed to 10) in the world file used
> for stage. I also noticed a number of places in trajectory_planner.cpp
> ".1" was hardcoded as the time increment. I changed those to ".01".
A couple of things here. First off, you shouldn't have to change the
controller_frequency parameter to 100Hz to get decent behavior on a real
robot. In fact, depending on the machine you're using on your robot, you may
have trouble with CPU usage when trying to run the local planner that
quickly. Is there any reason in particular that you need to control your
base at 100Hz? We've found control rates of between 10-20Hz to work pretty
well on our robot here.
Second, the ".1" hard-coded time increment when using dwa for the local
planner should really be a parameter, I've ticketed it here:
> Trying to run what used to work at 10Hz, I now see a robot that moves way
> faster than it did before. It looks like there is still something assuming
> things are running at 10Hz.
I bet you got the hard coded ".1" in the trajectory_planner_ros.cpp file,
but those are only used simulating trajectories that rotate in place...
there are probably some that you missed in the trajectory_plannner.cpp file.
Still not sure how I never noticed that stuff being hard coded.
Hope this helps,
> Any suggestions on where to look or how to approach this issue better would
> be appreciated.
> View this message in context:
> Sent from the ROS-Users mailing list archive at Nabble.com.
> ros-users mailing list
> ros-users at code.ros.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ros-users