Repository Summary
Checkout URI | https://github.com/pal-robotics/pmb2_simulation.git |
VCS Type | git |
VCS Version | humble-devel |
Last Updated | 2024-10-17 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Packages
Name | Version |
---|---|
pmb2_gazebo | 4.1.0 |
pmb2_multi | 2.0.24 |
pmb2_simulation | 4.1.0 |
README
PMB2 ROS 2 Simulation
This repository contains the launch files to simulate the PMB2/TIAGo Base robot in ROS 2.
Setup
Prerequisites
-
Install ROS 2 Humble by following the installation instructions.
-
Update the apt package index and install needed packages
sudo apt-get update
sudo 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-cpp
and setting theRMW_IMPLEMENTATION
environment variable:export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
. More information on working with different DDS implementations here.We are still looking on the issues when working with Fast RTPS.
Setting up the workspace
Create a workspace and clone all repositories:
mkdir -p ~/pmb2_public_ws/src
cd ~/pmb2_public_ws
vcs import --input https://raw.githubusercontent.com/pal-robotics/pmb2_tutorials/humble-devel/pmb2_public.repos src
Install dependencies using rosdep
sudo rosdep init
rosdep update
rosdep install --from-paths src -y --ignore-src
Source the environment and build
source /opt/ros/humble/setup.bash
colcon build --symlink-install
Finally, before running any application you have to source the workspace
source ~/pmb2_public_ws/install/setup.bash
Also you can add it to your .bashrc
Simulation
Standalone
Launch gazebo simulation:
ros2 launch pmb2_gazebo pmb2_gazebo.launch.py is_public_sim:=True
You 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_office
To 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}}' -r10
The velocities can be modified by changing the values of x and z.
Navigation 2
You can launch PMB2 navigation by executing
ros2 launch pmb2_2dnav pmb2_nav_bringup.launch.py is_public_sim:=True
Then, you can send a goal:
- With rviz2
- By using Navigation 2 API. For further information see Navigation 2 Tutorials
Simulation + Navigation 2
You can also start the simulation and navigation together by using
ros2 launch pmb2_gazebo pmb2_gazebo.launch.py is_public_sim:=True navigation:=True
Then, goals can be sent in the same way.
Simulation + Navigation 2 + SLAM
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:=True
To use private simulation you can avoid to set is_public_sim argument.
CONTRIBUTING
Contributing Guidelines
Thank you for your interest in contributing to this project Whether it’s a bug report, new feature, correction, or additional documentation, we greatly value feedback and contributions from our community.
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your bug report or contribution.
Reporting Bugs/Feature Requests
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
When filing an issue, please check existing open issues, or recently closed, issues to make sure somebody else hasn’t already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
- A reproducible test case or series of steps
- The version of our code being used
- Any modifications you’ve made relevant to the bug
- Anything unusual about your environment or deployment
Contributing via Pull Requests
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
- You are working against the latest source on the master branch.
- You check existing open, and recently merged, pull requests to make sure someone else hasn’t addressed the problem already.
- You open an issue to discuss any significant work - we would hate for your time to be wasted.
To send us a pull request, please:
- Fork the repository.
- Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
- Ensure local tests pass. (
colcon test
) - Commit to your fork using clear commit messages.
- Send a pull request, answering any default questions in the pull request interface.
- Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
GitHub provides additional documentation on forking a repository and creating a pull request.
Licensing
Any contribution that you make to this repository will be under the Apache 2 License, as dictated by that license:
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
Repository Summary
Checkout URI | https://github.com/pal-robotics/pmb2_simulation.git |
VCS Type | git |
VCS Version | foxy-devel |
Last Updated | 2021-10-19 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Packages
Name | Version |
---|---|
pmb2_2dnav_gazebo | 3.0.2 |
pmb2_gazebo | 3.0.2 |
pmb2_multi | 2.0.24 |
pmb2_simulation | 3.0.2 |
README
CONTRIBUTING
Contributing Guidelines
Thank you for your interest in contributing to this project Whether it’s a bug report, new feature, correction, or additional documentation, we greatly value feedback and contributions from our community.
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your bug report or contribution.
Reporting Bugs/Feature Requests
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
When filing an issue, please check existing open issues, or recently closed, issues to make sure somebody else hasn’t already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
- A reproducible test case or series of steps
- The version of our code being used
- Any modifications you’ve made relevant to the bug
- Anything unusual about your environment or deployment
Contributing via Pull Requests
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
- You are working against the latest source on the master branch.
- You check existing open, and recently merged, pull requests to make sure someone else hasn’t addressed the problem already.
- You open an issue to discuss any significant work - we would hate for your time to be wasted.
To send us a pull request, please:
- Fork the repository.
- Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
- Ensure local tests pass. (
colcon test
) - Commit to your fork using clear commit messages.
- Send a pull request, answering any default questions in the pull request interface.
- Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
GitHub provides additional documentation on forking a repository and creating a pull request.
Licensing
Any contribution that you make to this repository will be under the Apache 2 License, as dictated by that license:
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
Repository Summary
Checkout URI | https://github.com/pal-robotics/pmb2_simulation.git |
VCS Type | git |
VCS Version | indigo-devel |
Last Updated | 2018-01-02 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Packages
Name | Version |
---|---|
pmb2_2dnav_gazebo | 1.0.1 |
pmb2_controller_configuration_gazebo | 1.0.1 |
pmb2_gazebo | 1.0.1 |
pmb2_simulation | 1.0.1 |