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

How can we Dynamically update the pixel into occupancy map?

asked 2022-03-01 21:05:48 -0500

Kaveh gravatar image

updated 2022-03-01 21:07:16 -0500

When running the Navigation Node, the lidar is at the top of the robot(Turtlebot3), I added a sonar sensor at the bottom of the robot in order to detect the small objects in front of the robot(lidar at the top can't see that). Now I wanted to dynamically update the pixel into occupancy map while running Navigation node when sonar detects small objects at the bottom?

I attached the Image in order to describe this better.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-03-02 16:02:03 -0500

Mike Scheutzow gravatar image

You need to modify the configuration of your local_costmap. The costmap2d uses "plugins" to read data from different kinds of sensors, then can merge data from all the sensors into a single occupancy map.

edit flag offensive delete link more

Comments

@Mike Scheutzow, Would you please Elaborate more?? I have the llink below, but I don't know how to modify local_costmap dynamically once we get the sonar data. Any source code, reference or link would be much appreciated.

https://navigation.ros.org/configurat...

Kaveh gravatar image Kaveh  ( 2022-03-04 22:48:22 -0500 )edit

You can put the word ultrasonic into the search box at the top of this page, and you will get a lot of hits. There are many examples of how to configure costmap2d on this site.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-03-05 08:27:19 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-03-01 21:05:48 -0500

Seen: 95 times

Last updated: Mar 02 '22