ROS2 package for mapping capabilities with the iRobot Create 3 robot. This package publishes the robot's path using the Marker message type. This code is loosely based on the ros2_explorer package.
-
Create a workspace (if you don't already have one):
mkdir -p ~/ros2_ws/src -
Clone this repository into your workspace's src folder:
cd ~/ros2_ws/src git clone https://github.com/mattsblack/CSC212-Project.git
-
Install dependencies:
cd ~/ros2_ws rosdep install --from-paths src --ignore-src -r -y
-
Build the package:
colcon build --packages-select create3_mapper
After building the package, you need to source the setup file to use it:
source ~/ros2_ws/install/setup.bashTo automatically source this file every time you open a new terminal, add this line to your ~/.bashrc file:
echo "source ~/ros2_ws/install/setup.bash" >> ~/.bashrc-
Launch the
create3_mappernode:ros2 run create3_mapper create3_mapper.py
-
Launch RViz to visualize the robot's path:
ros2 launch create3_mapper rviz_launch.py