ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Relation between footprint and command velocity.

asked 2018-03-06 07:41:59 -0500

starter gravatar image

updated 2018-03-06 07:42:34 -0500

I am working with a dynamic footprint, the footprint is small when the robot is close to obstacles and it gets bigger if the robot is in a free open space. when the footprint is big ,the velocity decreases that means that the velocity is way below max_velocity even when there are no obstacles in the costmap, and if the footprint gets smaller the robot accelerates as the footprint is getting smaller and it reaches max_velocity. Does somebody has an explanation for this behavior and can I reverse it (fp big / vel big and vice versa). I am using dwa as local planner. Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-03-06 09:02:15 -0500

Delb gravatar image

I recommend you to be familiar with the costmap to understand the behavior it's interesting, check the wiki.

If you increase your footprint size then your footprint is getting closer to the obstacles hence to collision zones so the robot decreases its speed to avoid that.

On the contrary, if you decrease the footprint size when getting closer to an obstacle, then you won't get closer to the collision zones defined by the costmap so the speed won't decrease (it would even increase if you're reducing your footprint faster than getting closer to an obstacle).

Someone already asked a similar question you should check the answer it might help you.

edit flag offensive delete link more

Comments

@Delb Thank you for your answer, but the main reason why I asked my question is why even when there are absolutely no obstacles, just open space, when the footprint gets bigger the velocity drops.

starter gravatar image starter  ( 2018-03-06 10:01:58 -0500 )edit

Look at line 102 of the obstacle_cost_function.cpp it clearly states that the speed is linked to the footprint size, but I can't find exactly where the speed is changed..

Delb gravatar image Delb  ( 2018-03-06 12:12:31 -0500 )edit

Actually that method is only used once here the output is just passed as an argument to ObstacleCostFunction::footprintCost below and never used.

starter gravatar image starter  ( 2018-03-06 15:19:33 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-03-06 07:41:59 -0500

Seen: 184 times

Last updated: Mar 06 '18