Basic demonstration showing how to use RosMap with a static occupancy grid map.
sudo apt-get install python3-roslaunch python3-rospy python3-nav-msgs python3-geometry-msgsIn terminal (1), execute the following command to start the ROS master node:
roscoreIn terminal (2), execute the following command to start the 2D OccupancyGrid publisher:
python3 ogm_publisher.pyIn terminal (3), execute the following command to start PathBench with a 2D OccupancyGrid subscriber:
python3 ros.pyNote, wait a few seconds for the master node and publisher to start before executing the command for terminal (3).
For more information about how to use ros.py, execute the following:
python3 ros.py --help