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

Add 2 footprint to the map ?

asked 2023-01-12 05:27:09 -0500

Staredeath gravatar image

I'm using the Nav2 with Galactic version. Now, I want add new foorprint beside current footprint I had so this footprint can change based on topic data. I have read Nav2 source code, I know that Nav2 get information from yaml file, but it cannot use in my case. Anyone can help me, pls? thank you?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2023-01-12 21:35:39 -0500

Staredeath gravatar image

Thank you for quickly reply! I have try as you say but I have a trouble. When I create any publish and subscribe in Nav2_costmap_2d, I use colcon build with no error, but the footprint cannot display. The costmap node cannot link with other node as usual. I just add below subsscription of "footprint" topic in costmap_2d_ros.cpp.

The terminal return:

but I just add subscribe. Can you help me?

edit flag offensive delete link more
0

answered 2023-01-12 14:18:43 -0500

You can create a publisher to that subscription with your new footprint information. It should be very straight forward.

edit flag offensive delete link more

Comments

Thank you for quickly reply! I have try as you say but I have a trouble. When I create any publish and subscribe in Nav2_costmap_2d, I use colcon build with no error, but the footprint cannot display. The costmap node cannot link with other node as usual. I just add below subsscription of "footprint" topic in costmap_2d_ros.cpp.

The terminal return:

[ERROR] [controller_server-5]: process has died [pid 9400, exit code -11, cmd '/home/rtc/robot_ws/install/nav2_controller/lib/nav2_controller/controller_server --ros-args --params-file /tmp/tmpzpabk5zk -r /tf:=tf -r /tf_static:=tf_static'].

but I just add subscribe. Can you help me? but I just add subscribe. Can you help me?

Staredeath gravatar image Staredeath  ( 2023-01-12 21:36:29 -0500 )edit

Question Tools

Stats

Asked: 2023-01-12 05:27:09 -0500

Seen: 54 times

Last updated: Jan 12 '23