Fred,

On Tue, Nov 30, 2010 at 3:39 PM, FrederikHeger <frederik.heger@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 where
".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: https://code.ros.org/trac/ros-pkg/ticket/4601]
 

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,

Eitan
 

Any suggestions on where to look or how to approach this issue better would
be appreciated.

Thanks,
Fred
--
View this message in context: http://ros-users.122217.n3.nabble.com/running-move-base-and-stageros-at-100Hz-tp1996011p1996011.html
Sent from the ROS-Users mailing list archive at Nabble.com.
_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users