singhbal-baljinder / manipulator_gz_sim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Robotic Manipulator Simulation

A project simulating a Robot Manipulator Arm using ros2-control and Gazebo.

Included packages

  • manipulator_description - holds the sdf description of the simulated system and any other assets.

  • manipulator_gazebo - holds gazebo specific code and configurations. Namely this is where systems end up.

  • manipulator_application - holds ros2 specific code and configurations.

  • manipulator_bringup - holds launch files and high level utilities.

Build and Install

The code requires a ROS2 Humble installation and the suggested Gazebo Fortress. Currently it supports only installations on Ubuntu 22.04.

  1. Install ROS2 Humble and Gazebo Fortress.

  2. Install necessary tools

    sudo apt install python3-vcstool python3-colcon-common-extensions git wget
  3. Clone this repository in the source folder of your workspace, e.g. <ros2_ws/src>.

  4. Use rosdep to install the dependencies.

    cd ~/ros2_ws
    source /opt/ros/humble/setup.bash
    sudo rosdep init
    rosdep update
    rosdep install --from-paths src --ignore-src -r -i -y --rosdistro humble
  5. Use colcon to build.

    cd ~/ros2_ws
    colcon build

Usage

  1. In all the terminals source ROS2 and the workspace

    source /opt/ros/humble/setup.bash
    source ~/ros2_ws/install/setup.sh
  2. Launch the Gazebo model in one terminal:

     ros2 launch manipulator_bringup manipulator_setup.launch.py
  3. Launch the trajectory generator node in another terminal:

     ros2 run manipulator_application reference_generator

About

License:Apache License 2.0


Languages

Language:C++ 64.1%Language:CMake 20.3%Language:Python 14.4%Language:Shell 1.2%