Skip to content

Latest commit

 

History

History
112 lines (66 loc) · 4.95 KB

rt_sim_setup.md

File metadata and controls

112 lines (66 loc) · 4.95 KB

Connecting to RT Toolbox3 Simulator

This section will guide you to establish a UDP/IP connection between your ROS2 computer and RT Toolbox3 simulator. It is highly recommended to test your ROS2 applications on RT Toolbox3 simulator before testing it on a real robot. This is helpful as RT Toolbox3 simulator provides "near real" experience with 1-to-1 error conditions, velocity profiles and "close to actual" cycle times. RT Toolbox3 simulator works with Real Time Monitoring1 function which is useful for optimizing your ROS2 application.

1 Real Time Monitoring : found in Ethernet Function Instruction Manual from Robot Industrial/Collaborative Robot MELFA Manual. Provides real time data at control cycle intervals, 3.5ms for CR800-R/D and 7.11ms for CR800-Q.

Sections:

  1. Verifying Local IP Address on Windows
  2. Verifying Local IP Address on Ubuntu 22.04LTS
  3. ROS2 Connection to Simulator

1. Verify Local IP Address on Windows

This section will guide you to find your local IP address on your Windows10 device.

  1. Go to control panelNetwork and InternetNetwork and Sharing Centre and select Change adapter settings. Your Network adapters will be displayed in a popup window.


  1. Select your network adapter that you wish to connect to your ROS2 computer. Select PropertiesInternet Protocol Version 4 (TCP/IPv4). In the popup window, you can change your IP to your preferred IP address in your local network.


  1. Select Simulator to launch RT Toolbox3 simulator.


  1. On the Operation Panel (Green popup window for simulated robot), click on the Select button and select the robot Program you have created. Click OK.


  1. On the Operation Panel (Green popup window for simulated robot), click on the blue START button


2. Verifying Local IP address on Ubuntu 22.04LTS

This section will guide you to find your local IP address on your Ubuntu 22.04LTS device. The process is similar on other Ubuntu versions.

  1. Go to SettingsNetworkWired (+) to create a new ethernet profile. Under IPv4 Method, select Manual and input your preferred IP address for your Linux computer.


  1. From your Windows computer, ping your Linux computer. You may not be able to ping your Windows computer from your Linux computer due to Windows settings. If ping is unsuccessful, verify your Windows and Linux IP addresses and try again.
#ping <Linux local IP address>
ping 192.168.3.150

3. ROS2 Connection to Simulator

  1. Assuming that ping is successful, you are now ready to connect your RT Toolbox3 simulator as if it is a real robot. For the purpose of this tutorial, run the following command in the terminal. This command will launch the bringup launch file for RV7FRL robot using the CR800-R robot controller.
ros2 launch melfa_bringup rv7frl_control.launch.py use_fake_hardware:=false controller_type:="R" robot_ip:=192.168.3.100

To launch MoveIt Servo use the following command instead

ros2 launch melfa_bringup rv7frl_control.launch.py use_fake_hardware:=false controller_type:="R" robot_ip:=192.168.3.100 launch_servo:=true


2. To launch MoveIt. MELFA ROS2 moveit_config packages are natively compatible with OMPL, Pilz industrial planner, CHOMP and Moveit Servo.
ros2 launch melfa_rv7frl_moveit_config rv7frl_moveit.launch.py


Other guides: