|
| 1 | +# __Related Projects and Tutorials Usage__ |
| 2 | +## § ROS2 driver usage |
| 3 | +> |
| 4 | +> After the user has set up the ROS2 environment (example : [Debian packages for ROS 2 Humble](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html)) and built the TM driver based on the specific workspace, please enter your workspace `<workspace>` by launching the terminal, and remember to make the workspace visible to ROS. |
| 5 | +> |
| 6 | +> |
| 7 | +> ```bash |
| 8 | +> source /opt/ros/humble/setup.bash |
| 9 | +> cd <workspace> |
| 10 | +> source ./install/setup.bash |
| 11 | +> ``` |
| 12 | +> :bulb: Do you prepare the __TM Robot__ ready ? Make sure that TM Robot's operating software (__TMflow__) network settings are ready and the __Listen node__ is running. |
| 13 | +> |
| 14 | +> Then, run the driver to test whether the complete communication interface is properly working with TM Robot by typing |
| 15 | +> |
| 16 | +>```bash |
| 17 | +> ros2 run tm_driver tm_driver robot_ip:=<robot_ip_address> |
| 18 | +>``` |
| 19 | +> Example :``ros2 run tm_driver tm_driver robot_ip:=192.168.10.2``, if the <robot_ip_address> is 192.168.10.2 |
| 20 | +> |
| 21 | +> Now, the user can use a new terminal to run each ROS node or command, but don't forget to source the correct setup shell files as starting a new terminal. |
| 22 | +> Note: When you finish executing your developed scripts or motion commands through the TM ROS driver connection, press CTRL + C in all terminal windows to shut everything down. |
| 23 | +
|
| 24 | +## § Usage with MoveIt2-humble (Binary) |
| 25 | +> |
| 26 | +> See [MoveIt2 tutorial](https://moveit.ros.org/install-moveit2/binary/) to install the MoveIt2 packages.<br/> |
| 27 | +> ```bash |
| 28 | +> sudo apt install ros-humble-moveit |
| 29 | +> ``` |
| 30 | +> Then, use the following command to install these ROS2 Humble dependency packages |
| 31 | +> ```bash |
| 32 | +> sudo apt-get install ros-humble-controller-manager |
| 33 | +> sudo apt install ros-humble-joint-trajectory-controller |
| 34 | +> sudo apt install ros-humble-joint-state-broadcaster |
| 35 | +> ``` |
| 36 | +> |
| 37 | +> If you plan to use MoveIt, it is recommended to install and use Cyclone DDS. |
| 38 | +> ```bash |
| 39 | +> sudo apt install ros-$ROS_DISTRO-rmw-cyclonedds-cpp |
| 40 | +> export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp |
| 41 | +> ``` |
| 42 | +> |
| 43 | +> The `<tm2_ws>` means TM driver workspace, for example `tm2_ws` .<br/> |
| 44 | +> |
| 45 | +> |
| 46 | +> Then to build the TM driver based on the <tm2_ws> workspace, please enter the specific workspace `tm2_ws` by launching the terminal, and remember to make the workspace visible to ROS.<br/> |
| 47 | +> |
| 48 | +> |
| 49 | +> ```bash |
| 50 | +> source /opt/ros/humble/setup.bash |
| 51 | +> export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp |
| 52 | +> cd ~/tm2_ws |
| 53 | +> colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release |
| 54 | +> source ./install/setup.bash |
| 55 | +> ``` |
| 56 | +> |
| 57 | +> :bulb: If you have built the TM driver before, it is recommended that you delete the build, install and log folders by the command `rm -rf build install log`, and rebuild it. For example,<br/> |
| 58 | +> |
| 59 | +> |
| 60 | +> ```bash |
| 61 | +> source /opt/ros/humble/setup.bash |
| 62 | +> export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp |
| 63 | +> cd ~/tm2_ws |
| 64 | +> rm -rf build install log |
| 65 | +> colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release |
| 66 | +> source ./install/setup.bash |
| 67 | +> ``` |
| 68 | +> |
| 69 | +> The demo launches the RViz GUI and demonstrates planning and execution of a simple collision-free motion plan with TM Robot.<br/> |
| 70 | +> :bulb: Do you prepare the __TM Robot__ ready ? Make sure that TM Robot's operating software (__TMflow__) network settings are ready and the __Listen node__ is running.<br/> |
| 71 | +> |
| 72 | +> * To bring up the MoveIt2 - MoveGroup demo in simulation mode with the virtual TM Robot, by typing<br/> |
| 73 | +> |
| 74 | +> |
| 75 | +> ```bash |
| 76 | +> ros2 launch <tm_robot_type>_moveit_config <tm_robot_type>_run_move_group.launch.py |
| 77 | +> ``` |
| 78 | +> |
| 79 | +>> The prefix `<tm_robot_type>` means the TM Robot type, available for tm5s, tm7s, tm12s, tm14s, and tm25s models. |
| 80 | +> |
| 81 | +> Taking the TM12S robot as an example, use the commands introduced above, by typing |
| 82 | +> ```bash |
| 83 | +> ros2 launch tm12s_moveit_config tm12s_run_move_group.launch.py |
| 84 | +> ``` |
| 85 | +> |
| 86 | +> * The user can also manipulate the real TM Robot to run, by typing<br/> |
| 87 | +> |
| 88 | +> ```bash |
| 89 | +> roslaunch <tm_robot_type>_moveit_config <tm_robot_type>_run_move_group.launch.py robot_ip:=<robot_ip_address> |
| 90 | +> ``` |
| 91 | +> :warning:[CAUTION] This demo will let the real TM Robot move, please be careful. If the user are a beginner or unfamiliar with the arm movement path, it is recommended that the user place your hand on the big red emergency _Stick Stop Button_ at any time, and press the button appropriately in the event of any accident that may occur.<br/> |
| 92 | +> |
| 93 | +> Taking the TM12S robot as an example, use the commands introduced above, by typing<br/> |
| 94 | +> |
| 95 | +> ```bash |
| 96 | +> ros2 launch tm12s_moveit_config tm12s_run_move_group.launch.py robot_ip:=<robot_ip_address> |
| 97 | +> ``` |
| 98 | +> |
| 99 | +>> The parameter `<robot_ip_address>` means the IP address of the TM Robot.<br/> |
| 100 | +> |
| 101 | +> Note: When you have finished, press CTRL + C in all terminal windows to shut everything down.<br/> |
| 102 | +> :bookmark_tabs: Note1: There will be several built-in TM Robot nominal robot model settings, available for TM5S, TM7S, TM12S, TM14S, and TM25S models.<br/> |
| 103 | +> :bookmark_tabs: Note2: TM Robot set the default to read the Xacro file, such as _TM5S_ model, to read the file _tm5s.urdf.xacro_ into robot_description or such as _TM12S_ model, to read the file _tm12s.urdf.xacro_ into robot_description. If the user wants to use the specific model parameters instead of the nominal model to control the robot, please go back to the section __6. Generate your TM Robot-Specific Kinematics Parameters Files__ to modify the Xacro file.<br/> |
| 104 | +<div> </div> |
| 105 | +
|
0 commit comments