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.
The primary objectives of this project are:
- Robot Description and Visualization: Create the URDF description of a robotic arm and visualize it in Rviz.
- Gazebo Simulation Setup: Spawn the robot in a Gazebo environment and add necessary controllers.
- Sensor Integration: Add a camera sensor to the robot for visual perception tasks.
- Control Implementation: Develop a ROS node to read joint states and send position commands to control the robot.
The primary components of the project include:
- 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.
- 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.
- 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.
- 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
- Control Implementation:
- A ROS C++ node is developed to subscribe to the
joint_statestopic, print current joint positions, and publish position commands to control the robot's joints.
- A ROS C++ node is developed to subscribe to the
To set up the project and run the simulation, follow these steps:
-
Install ROS Noetic: Ensure that ROS Noetic is installed on your system.
-
Clone the Repository:
cd .../catkin_ws/src git clone https://github.com/EmanueleCuzzocrea/Homework1.git -
Build the Package: Compile the ROS workspace:
cd .../catkin_ws catkin_make source devel/setup.bash
- 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!



