Who it is forA ROS 2 navigation engineer debugging why a robot took a path, using a recorded rosbag2 from a nav2 run.
The problemCostmaps flattened into plain images hide which cells are lethal obstacles and which are inflated, making path failures hard to explain.
The outcomeThe global and local costmaps appear as grid map entities with origin and resolution handled, with cost categories drawn distinctly.
What you need first
- Python with pip, or Rust with cargo, to install the Dalaran SDK or viewer
- A terminal to run the dalaran command
- An existing .rrd, .dlr, or MCAP recording, or a ROS 2 setup with rosbag2 files, for the replay use cases
Steps
- Locate a rosbag2 or MCAP file that contains /global_costmap or /local_costmap topics from your nav2 run.
- Replay the rosbag2 into Dalaran with the ROS 2 bridge described in the README, saving the output as a .dlr file. (inferred, check the README)
- Run
dalaran session.dlrto open the saved recording, replacing session.dlr with your file name. - Step through the timeline and check that the costmap layers stack with their own opacity alongside the robot pose.
Prompt for your agent
In the Flaminis/Dalaran repository, replay <bag_path> into a .dlr file using the ROS 2 bridge and open it with the dalaran command. Expected output is a viewer showing nav2 costmap grids on the timeline. Verify that the global and local costmap entities appear and that lethal and inflated obstacle cells are shown as separate categories.
Caveat. The README does not give the exact ROS 2 bridge command, so this use case needs the BUILD.md, docs, or examples to confirm the replay steps.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page