Skip to content

About

This repository contains the code for the first homework of the Robotics Lab course, and a .pdf report with all the steps that have been taken.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Simple Robotic Arm in ROS

Overview

This project is developed as part of the Robotics Lab course assignment, focusing on simulating a robotic arm using ROS and Gazebo. The project involves creating the robot's description, visualizing it in Rviz, adding transmission and controllers, and implementing a camera sensor. Additionally, a ROS publisher node is developed to control the robot's joints by sending position commands.

Objectives

The primary objectives of this project are:

  1. Robot Description and Visualization: Create the URDF description of a robotic arm and visualize it in Rviz.
  2. Gazebo Simulation Setup: Spawn the robot in a Gazebo environment and add necessary controllers.
  3. Sensor Integration: Add a camera sensor to the robot for visual perception tasks.
  4. Control Implementation: Develop a ROS node to read joint states and send position commands to control the robot.

Project Structure

The primary components of the project include:

  1. Robot Description and Visualization:
    • The robotic arm's URDF is defined, and a launch file is created to visualize it in Rviz.
    • Collision meshes are replaced with primitive shapes for better performance, and a configuration file is saved to automatically load the robot model in Rviz.

Pseudocode

  1. Gazebo Simulation Setup:
    • A Gazebo simulation environment is set up with the robotic arm loaded into the world.
    • Transmission and position controllers are added to the robot, allowing for joint-level control in the simulation.

Pseudocode

  1. Sensor Integration:
    • A camera sensor is added to the robot using a fixed joint. The camera is configured to publish image topics, which are then visualized using rqt_image_view.

Pseudocode

  1. Control Implementation:
    • A ROS C++ node is developed to subscribe to the joint_states topic, print current joint positions, and publish position commands to control the robot's joints.

Pseudocode

Installation and Setup

To set up the project and run the simulation, follow these steps:

  1. Install ROS Noetic: Ensure that ROS Noetic is installed on your system.

  2. Clone the Repository:

    cd .../catkin_ws/src
    git clone https://github.com/EmanueleCuzzocrea/Homework1.git
  3. Build the Package: Compile the ROS workspace:

    cd .../catkin_ws
    catkin_make
    source devel/setup.bash

Key Results and Observations

  • Robot Visualization: The robotic arm was successfully visualized in Rviz, with accurate collision models and configurations.
  • Gazebo Simulation: The robot was loaded into the Gazebo environment, with all controllers functioning correctly. The robot's joints responded accurately to position commands.
  • Camera Integration: The camera sensor was successfully added to the robot, with image topics correctly published and visualized in rqt_image_view.
  • Joint Control: The developed ROS node effectively controlled the robot's joints by publishing position commands, demonstrating the ability to manipulate the robotic arm within the simulation.

Thank you!

About

This repository contains the code for the first homework of the Robotics Lab course, and a .pdf report with all the steps that have been taken.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages