Nav2 and costmap_2d nodes
Hi all,
I'm trying to figure out how Nav2 is structured and I was searching for the launch files for the costmap_2d nodes that handle the local and the global cost maps.
I found that the nodes are not launched, but they are incorporated in the planner server or the control server that uses them.
For example here is where a node is declared inside the planner server: https://github.com/ros-planning/navig...
Is there a reason for this hard-coded design when there is a powerful tool in ROS2 like IPC (Intra Process Communication) to be used?
For a personal exercise, I also tried to create my launch file for a costmap_2d node that subscribes to a 2D lidar scan and generates the local cost map... without success because it seems that the costmap_2d node does not work like any other nodes (for example, the namespace and node name parameters in the launch file are ignored). But this is a topic for another eventual thread...