Skip to content

红莲!工业机器人project! UR5 + ROS/MOVEIT/GAZEBO

License

Notifications You must be signed in to change notification settings

mrzhuzhe/Gurren

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gurren

红莲! simulate and control ur5


Clone

Notice: this repo has submodule clone it with --recursive

# Clone all submodules
git clone --recursive [email protected]:mrzhuzhe/Gurren.git


Dependences

Notice: you shall install python3-rosdep

# Install ROS Noetic first

# then install rosdep
sudo apt-get install python3-rosdep
sudo rosdep init
rosdep update

# this is ad hoc a bug rqt didn't auto install controller manager
sudo apt-get install ros-noetic-rqt-controller-manager
  1. ROS Noetic
  2. UR robot driver Version 2022/08
  3. moveit Moveit 1 Noetic
  4. gazebo Version 11


1. Customize ROS_Controller


Customize ros contoller to implement cartesian velocity control

Detail

Video: 【Sim2real】02 自定义ROS_control实现反馈控制

Post: 【Sim2real】02 自定义ROS_control实现反馈控制



Run

cd my_test/

source devel/setup.bash

// run to a position with static cartesian velocity  
roslaunch ur_gazebo ur5e_bringup.launch controllers:=cartesian_velocity_position_controller

// caertesian velocity controller 
roslaunch ur_gazebo ur5e_bringup.launch controllers:=cartesian_velocity_controller

// cartesian position 
roslaunch ur_gazebo ur5e_bringup.launch controllers:=cartesian_controller

// only test control hook
roslaunch ur_gazebo ur5e_bringup.launch controllers:=test_controller

// run it with rqt topic publisher 


Install

cd my_test/

catkin build

// install controller plugins 
// If you add a controller plugin you need run this once more time
rosdep install -i --from-path src --rosdistro noetic --ignore-src -r -y

source devel/setup.bash



2. MOVEIT GAZEBO setup demo


Setup ROS gazebo enviroment and moveit to move robot follow a trajectory base on 3d model convexhull

Detail


Video: 【Sim2real】01:ROS , Moveit , Gazebo 和凸包

Post: 【Sim2real】01:ROS , Moveit , Gazebo 和凸包



Run

cd catkin_ws/

// connect robot
roslaunch ur_robot_driver ur5_bringup.launch robot_ip:=192.168.130.105
[gazebo] roslaunch zz_test ur5_gazebo_test.launch

// make planing
roslaunch zz_test ur5_moveit_planning_execution.launch
[with gazebo ]roslaunch zz_test ur5_moveit_planning_execution.launch sim:=true

// visualize
roslaunch zz_test moveit_rviz.launch 

// application

// draw a circle/cone
roslaunch zz_test move_group_interface_tutorial.launch 



Install


# install dependencies
$ sudo apt update -qq
$ rosdep update
$ rosdep install --from-paths src --ignore-src -y

# build the workspace
$ cd catkin_ws
$ catkin_make

# activate the workspace (ie: source it)
$ source devel/setup.bash




About

红莲!工业机器人project! UR5 + ROS/MOVEIT/GAZEBO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published