mbot - ROS2 Jazzy - Ubuntu 24.04
This repository should be the src folder of the ROS2 workspace. So first we create the workspace mbot_ws. Then clone this repo as src.
mkdir mbot_ws
cd mbot_ws
git clone --recurse-submodules https://github.com/mbot-project/mbot_ros2_ws.git srcOR if you are using gh:
mkdir mbot_ws
cd mbot_ws
gh repo clone mbot-project/mbot_ros2_ws src
git submodule update --init --recursiveThen source the setup file:
echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc
echo "export ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST" >> ~/.bashrcsource /opt/ros/jazzy/setup.bash
cd ~/mbot_ws
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO --skip-keys=libcamera
colcon build --symlink-install
echo "source $PWD/install/local_setup.bash" >> ~/.bashrc
source install/local_setup.bashBy default this will create the following directories as peers of the src directory:
- The
builddirectory will be where intermediate files are stored. For each package a subfolder will be created in which e.g. CMake is being invoked. - The
installdirectory is where each package will be installed to. By default each package will be installed into a separate subdirectory. - The
logdirectory contains various logging information about each colcon invocation.
ros2 launch mbot_bringup mbot_bringup.launch.py - This will bring up the lidar driver, the robot description for visualization, and the tf tree.
- This command will not launch rviz.
ros2 launch mbot_bringup mbot_bringup.launch.py Run the following line on NoMachine:
ros2 launch mbot_bringup mbot_viz.launch.pyPlease check the README file under mbot_navigation.
Please check the README file under mbot_vision.
ROS LiDAR driver - This will publish the topic /scan
ros2 launch sllidar_ros2 sllidar_a1_launch.py frame_id:=lidar_link - Where mbot custom messages and services are defined.
- The messages defined here are used on both Pi5 and Pico.
- ROS package of the URDF model