![]() |
techman_robot_grasp_ros2 repositoryrobotiq_2f_140_gripper_visualization techman_robot_utility_scripts tm_driver tm_gazebo_plugin tm_grasp_description tm_launch tm_msgs tm_status |
Repository Summary
Description | this is ros2 demo by using techman robot and robotiq gripper |
Checkout URI | https://github.com/jufengwu/techman_robot_grasp_ros2.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2019-12-30 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
Name | Version |
---|---|
robotiq_2f_140_gripper_visualization | 0.0.0 |
techman_robot_utility_scripts | 0.0.0 |
tm_driver | 0.0.0 |
tm_gazebo_plugin | 0.0.0 |
tm_grasp_description | 0.0.0 |
tm_launch | 0.0.0 |
tm_msgs | 0.0.0 |
tm_status | 0.7.6 |
README
Techman robot Ros2 and grasp
This is a ros2 example by using techman robot and robotiq.
Install
There are two ways to install and build this package. The first in using Docker and the other install the environment directly on your own computer. I suggest to use Docker to create environment and package.
Use Docker file to create environment and package
The easiest way to get started is using Docker. The Docker install steps are here
- Install Docker.
- Change to superuser user by type
sudo -i
- Create the workspace and download source files
mkdir -p ~/jufeng_tm_ws/src
cd ~/jufeng_tm_ws/src
git clone https://github.com/JuFengWu/techman_robot_grasp_ros2.git
- Build docker images by type
cd ~/jufeng_tm_ws/src/techman_robot_grasp_ros2
docker build -t techman_robot_grasp_ros2:ver1 .
and wait for a moment.
- Type
docker run -it --rm -p 6080:80 techman_robot_grasp_ros2:ver1
- Open a broswer and connect to localhost:6080, you can see the desktop on the broswer(which is remote desktop) with this package environment and this package.
- Build the project on the remote desktop by opening the remote desktop terminal and type
cd ./tm_ros2_ws
colcon build
Install it without Docker
This package use the following dependent tools:
- ROS2 Dashing
- ROS1 Melodic
- Gazebo 9
- Moveit ROS1 Melodic version
After install those dependent tools and you can start to build this package by following steps:
- Create the workspace and download source files
mkdir -p ~/jufeng_tm_ws/src
cd ~/jufeng_tm_ws/src
git clone https://github.com/JuFengWu/techman_robot_grasp_ros2.git
- Build this project and source it
source /opt/ros/dashing/setup.bash
cd ~/jufeng_tm_ws
colcon build
source install/setup.bash
Rviz
Rviz is a powerful robot simulator in Ros. Current it have ros2 version and sometimes it is called Rviz2.
The Rviz in Ros2 is almost the same as Ros1, so if you used Rviz in Ros1 before, it is easy to get start!
Launch and show it up in rivz2
You can launch rviz2 and show the robot and griiper just type
ros2 launch tm_launch tm_rviz_joint_state.launch.py
you can see techman robot move in rviz
Gazebo
Gazebo is a powerful simulator with high-performance physics engines and because its physics engines it is a good data creator. The difference between Gazebo and Rviz is that Gazebo is a robot status data creator and Rviz is a data receiver to show up the robot status.
Launch and show it up in Gazebo
You can launch Gazebo and show the robot and griiper just type
ros2 launch tm_launch tm_gazebo_move.launch.py
you can see techman robot stand in gazebo environment
Send command to Gazebo
You can send command to gazebo by typing
ros2 run tm_driver send_tm_command
you can see techman robot run in gazebo environment
Get eye in hand camera image in Gazebo
If you want to see the image from eye in hand camera, you can type
``` ros2 run tm_driver tm_get_img
File truncated at 100 lines see the full file