Skip to content

RobotnikAutomation/robotnik_simulation

Repository files navigation

Contributors Forks Stargazers Issues Unlicense License LinkedIn

Logo Robotnik


=======

robot_simulation

Simulation of Robotnik Automation robots in ROS2!
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Custom Simulation
  5. Roadmap
  6. Contributing
  7. License
  8. Contact

About The Project

Simulation View

This package will combine the different Robotnik packages in ROS2 to simulate the robots in the different available platforms, as Gazebo Sim 8.9.0, etc.

This README will guide you to the simulation usage and the custom simulations that you can build for your own projects.

(back to top)

Getting Started

This package works with the different packages that Robotnik developed for the robots. You will need to install some of these packages first.

Prerequisites

- Gazebo Sim 8.9.0

- ROS2 Jazzy

First, be sure that you have all the Gazebo packages installed for ROS2.

sudo apt install ros-jazzy-ros-gz

Installation

Then, let's procede with the installation of the Robotnik packages. First, create the workspace to work with:

mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src/

Then continue with the installation of packages.

  1. robotnik_description
  2. robotnik_sensors
  3. robotnik_common
  4. robotnik_interfaces
  5. ur_description
  6. robotnik_simulation
git clone https://github.com/RobotnikAutomation/robotnik_description.git -b jazzy-devel

git clone https://github.com/RobotnikAutomation/robotnik_sensors.git -b jazzy-devel

git clone https://github.com/RobotnikAutomation/robotnik_common.git -b ros2-devel

git clone https://github.com/RobotnikAutomation/robotnik_interfaces.git -b jazzy-devel

git clone https://github.com/RobotnikAutomation/Universal_Robots_ROS2_Description.git -b fix/gazebo-control-jazzy

git clone https://github.com/RobotnikAutomation/robotnik_simulation.git -b jazzy-devel

Install precompiled debs for simulation. Please, change directory to the root of the repository and run the following command:

sudo apt-get install -y ./debs/ros-${ROS_DISTRO}-*.deb

Install missing dependencies with rosdep:

cd ~/ros2_ws
rosdep update
rosdep install --from-paths src --ignore-src -r -y

Finally, compile workspace:

source /opt/ros/jazzy/setup.bash
cd ~/ros2_ws && colcon build
source install/setup.bash

(back to top)

Docker

If you want to use Docker, you can use the docker-compose file that is in the root of the repository. This will create a container with all the dependencies installed and ready to use.

To start the containers, run the following command:

docker compose up

This will build a robotnik_simulator image the first time you run it. After that, it will use the cached image.

Setup

You can configure the simulation based on docker images editing the environment in the env/robot.env file. You will need to uncomment the specific variables related to desired robot to simulate and comment or delete the others.

Make sure that the environment variables (ROBOT, ROBOT_MODEL, HAS_ARM) are set correctly before running the containers.

(back to top)

Usage

See each package for more details.

Enjoy!

rbvogui_gif

(back to top)

Custom Simulation

In case that the robot model that you want to simulate is not in robotnik_description package, or the world, or you want to use a different controller, you will have to create your own simulaiton files.

This will guide you to create your custom simulation.

Custom Robot Model

  1. First, create your own package for the project.
  2. In this package, create your URDF file. You can base in the template file that are in robotnik_description package.
  3. In the README of robotnik_description there is a brief descripiton on how to create a robot.
  4. On this file you can modify and add all the sensors, arms and any other component.
  5. Then, launch the spawn_robot with the argument robot_xacro_path.

Custom Control

In case that you want to modify the velocity, topics, frames and everything related to the control, you can find the files in robotnik_gazebo_ignition/config folder. There is a file for each robot that you can modify.

Custom world

To launch a custom file, you can use the world_path argument that it's in the spawn_world launch. See Launch Gazebo.

Roadmap

  • Add Gazebo Ignition
  • Add more worlds
  • Add multi robot support

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Top contributors:

contrib.rocks image

(back to top)

License

Distributed under the Unlicense License. See LICENSE.txt for more information.

(back to top)

Contact

Project Link: https://github.com/RobotnikAutomation

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6