- Notifications
You must be signed in to change notification settings - Fork4
License
pal-robotics/pmb2_simulation
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository contains the launch files to simulate the PMB2/TIAGo Base robot in ROS 2.
Install ROS 2 Humble by following theinstallation instructions.
Update the apt package index and install needed packages
sudo apt-get updatesudo apt-get install git python3-vcstool python3-rosdep python3-colcon-common-extensions
Disclaimer: In our testing environment, we've found out that the simulation is more reliable if we switch to Cyclone DDS. You can do this by installing it with
sudo apt install ros-humble-rmw-cyclonedds-cppand setting theRMW_IMPLEMENTATIONenvironment variable:export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp. More information on working with different DDS implementationshere.We are still looking on the issues when working with Fast RTPS.
Create a workspace and clone all repositories:
mkdir -p ~/pmb2_public_ws/srccd ~/pmb2_public_wsvcs import --input https://raw.githubusercontent.com/pal-robotics/pmb2_tutorials/humble-devel/pmb2_public.repos src
Install dependencies using rosdep
sudo rosdep initrosdep updaterosdep install --from-paths src -y --ignore-src
Source the environment and build
source /opt/ros/humble/setup.bashcolcon build --symlink-install
Finally, before running any application you have to source the workspace
source ~/pmb2_public_ws/install/setup.bashAlso you can add it to your .bashrc
Launch gazebo simulation:
ros2 launch pmb2_gazebo pmb2_gazebo.launch.py is_public_sim:=TrueYou can launch gazebo simulation using PAL office gazebo world by executing:
ros2 launch pmb2_gazebo pmb2_gazebo.launch.py is_public_sim:=True world_name:=pal_officeTo move the robot you can use the following command from another terminal:
ros2 topic pub /mobile_base_controller/cmd_vel_unstamped geometry_msgs/msg/Twist '{linear: {x: 1}, angular: {z: 0}}' -r10The velocities can be modified by changing the values of x and z.
You can launch PMB2 navigation by executing
ros2 launch pmb2_2dnav pmb2_nav_bringup.launch.py is_public_sim:=TrueThen, you can send a goal:
- With rviz2
- By using Navigation 2 API. For further information seeNavigation 2 Tutorials
You can also start the simulation and navigation together by using
ros2 launch pmb2_gazebo pmb2_gazebo.launch.py is_public_sim:=True navigation:=TrueThen, goals can be sent in the same way.
You can start the SLAM and navigation in simulation by using
ros2 launch pmb2_gazebo pmb2_gazebo.launch.py is_public_sim:=True navigation:=True slam:=TrueAbout
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors13
Uh oh!
There was an error while loading.Please reload this page.


