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

Customize the Local cost map

asked 2022-05-25 00:26:33 -0600

Morteza7 gravatar image

updated 2022-05-27 05:33:10 -0600

Hi everyone, Based on the ROS tutorial I added a simple layer to the global map as a plugin. the question is, How can I customize the local cost map as I want? I attached a picture and I want to do the same. Based on the image, the shape of a dynamic obstacle is changing during navigation on the local cost map. Image link thank you for your support...

image description

edit retag flag offensive close merge delete

Comments

I could not quite grasp the image you provided, could you elaborate?

In any case, it is good to remember that, as the global, the local costmap is still, in fact, a costmap. That being said, the parameters are common to either one of them, making the way you configure them the factor that distinguishes one from the other. I would advice you to take a look into these.

joao.aguizo gravatar image joao.aguizo  ( 2022-05-26 08:22:07 -0600 )edit

I added the image to the question. I want to do something like a picture...

Morteza7 gravatar image Morteza7  ( 2022-05-27 05:37:26 -0600 )edit

Still did not get it... You did not provide any additional information that might be useful. What is your end goal? Can you try explain what you are trying to achieve in that image that you provided?

joao.aguizo gravatar image joao.aguizo  ( 2022-05-27 06:19:27 -0600 )edit

Does the "customize the local cost map as I want" part mean something like a virtual obstacle that the robot sees as it moves? It would be something like in this set of packages for MiR: https://github.com/dfki-ric/mir_robot... - concretely:

# navigation:
roslaunch mir_navigation start_planner.launch \
    map_file:=$(rospack find mir_gazebo)/maps/maze.yaml \
    virtual_walls_map_file:=$(rospack find mir_gazebo)/maps/maze_virtual_walls.yaml
ljaniec gravatar image ljaniec  ( 2022-05-27 14:21:08 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-07-05 02:30:51 -0600

Morteza7 gravatar image

I solved it. I just used the simple layer tutorial and add my code to create the custom shape as a local cost map. simple layer tutorial

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-05-25 00:26:33 -0600

Seen: 291 times

Last updated: Jul 05 '22