目录:
说明:
依赖安装
- sudo apt install -y \
- python3-colcon-common-extensions \
- python3-rosdep \
- python3-vcstool
- sudo apt-get update && sudo apt-get install wget
- sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
- wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
- sudo apt-get update && sudo apt-get install ignition-edifice
APT步骤:
- sudo apt update
- sudo apt install ros-galactic-turtlebot4-simulator ros-galactic-irobot-create-nodes
源码安装步骤:
- cd ~/ros2_tb4_ws/src
- git clone https://github.com/turtlebot/turtlebot4_simulator.git
- cd ~/ros2_tb4_ws
- vcs import src < src/turtlebot4_simulator/dependencies.repos
- rosdep install --from-path src -yi
- source /opt/ros/galactic/setup.bash
- colcon build --symlink-install
echo "source ~/ros2_tb4_ws/install/local_setup.bash" >> ~/.bashrc
运行:
ros2 launch turtlebot4_ignition_bringup ignition.launch.py
ros2 launch turtlebot4_ignition_bringup ignition.launch.py model:=lite