Skip to content

t-black4/FlexROS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#README

FlexROS - uArm Robot Control System

This repository contains the implementation for controlling and visualizing the uArm robot using ROS 2 and RViz.

Prerequisites

  • ROS 2 Humble
  • Required ROS 2 packages:

Installation

  1. Clone the repository and required packages:
mkdir -p ~/flexros_ws/src
cd ~/flexros_ws/src
git clone https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver.git
  1. Build the workspace:
cd ~/flexros_ws
colcon build --symlink-install

Getting Started

  1. Source your ROS 2 environment:
source /opt/ros/humble/setup.bash
source install/setup.bash
  1. Launch RViz with the uArm robot model:
ros2 launch ur_description view_ur.launch.py ur_type:=ur5
  1. Start the robot control node:
ros2 run ur_custom_control ur_control_node

Moving the Robot

Using the ur_move Node

  1. In a new terminal, run the ur_move node:
ros2 run ur_custom_control ur_move
  1. The node accepts movement commands through ROS 2 topics. You can send commands using:
ros2 topic pub /ur_control/target_pose geometry_msgs/msg/Pose "position:
  x: 0.0
  y: 0.0
  z: 0.0
orientation:
  x: 0.0
  y: 0.0
  z: 0.0
  w: 1.0"

Additional Resources

source install/setup.bash ros2 topic echo /joint_states

ros2 topic echo /ur5/ur_controllers/joint_group_position_controller/state

About

FlexROS – Simulate and control UR arm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages