- Make sure IP address, subnet, and default gateway are set correctly.
- Make sure local network subnet matches IP subnet
-
ping robot ip to make sure connection is established
-
Run
python scripts/get_joint_positions.pyto ensure arm can be reached via URX (may have to edit arm ip in script)
-
Change gripper permissions:
sudo chmod 777 /dev/ttyUSB0 -
Verify gripper can be controlled via modbus:
python scripts/test_2f_85.py
- Place Mello into below position and while holding it in this position, press and hold the red button for a few seconds.
After pressing and holding the red button, you will know calibration is complete as the ZERO indicator on the screen will now be green
-
Unlock permissions for the Mello Port
sudo chmod 777 /dev/serial/by-id/usb-M5Stack_Technology_Co.__Ltd_M5Stack_UiFlow_2.0_24587ce945900000-if00 -
Double tap the red button to stream joint positions. The streaming indicator on the screen will turn green
python scripts\test_mello.py(should see joint positions getting streamed)
python scripts/mello_teleop.py
Note that for UR5 CB2 you will also have to start the modbus_control.urp script. Make sure Mello is in a good position before starting script as arm will jump to Mello position.
Can check stream for realsense camera (modify id in script) python scripts/stream_realsense.py
python scripts/pc_calibration.py
The arm will move to many positions (can toggle this inside the file). At each position select the gripper in the image then press any key to continue, or press enter to skip current position.
Matrices for each calibration as well as the final transformation matrix are saved in the calibration_data/ folder
To view calibration accuracy python scripts/visualize_calibration.py. Blue and green points close to eachother means the predicted values are good and the calibration was successful.
For data collection run python scripts/collect_data.py. Can modify collection frequency or whether or not to use the camera. For Implementation details refer to the DataCollectionInterface.
python scripts/visualize_trajectory.py
python scripts/replay_trajectory.py





