Waterloo Steel:Platform Launch Demos - UW-Advanced-Robotics-Lab/lab-wiki GitHub Wiki
[Last generated: Thu 07 Dec 2023 02:20:12 PM EST]
‼️ For general powering on device, please refer to 💠 Platform Instruction
$ ssh [email protected]
$ roslaunch waterloo_steel_supervisor multi_intel_camera.launch
🚨 If the launch is not successful:
- Check the hardware USB C cable connections to both cameras
- [Ask Jack if you need to] Launch individual cameras separately for the system to register individual camera IDs
# 1. connect to jetson
$ ssh [email protected]
# 2. start a tmux session
$ tmux
### TIPS:
# create multiple windows with:
# [ctrl + b] then ["] : split horizontal
# [ctrl + b] then [%] : split vertical
# [ctrl + b] then [arrow-keys] : switch window selection
# [ctrl + b] then [:] and [type: set mouse on] : to enable mouse selection and scroll and window adjustment
# 3. launch wam node:
$ roslaunch wam_node wam_node.launch
### WAM Activation Instruction:
# 1. release all E-stops
# 2. [shift & activate] on control pendant (the one with E-stop inside the cabinet)
# 3. [Enter] on the keyboard to confirm default home-position
# Now, you will hear the gear activating
### TIPS:
# launch other nodes: 1.2 camera & 1.4 demo node in different tmux windows
# 4. detach to keep running in background and independent from your laptop terminal:
# [ctrl + b] then [:] and [type: dettach]
$ roslaunch waterloo_steel_supervisor waterloo_steel_demo.launch
# command to perform demo:
$ rosservice call /waterloo_steel/start_demo "demo_id: 2"
First SSH into Base pc
$ ssh [email protected]
$ tmux_multi
This will launch a tmux with 2 vertically split windows. To split the windows again, press right mouse-click + h for horizontal split or right mouse-click + v for vertical split. (For older versions: use Ctrl+b % or Ctrl+b ")
Then launch the Rosbag recorder action server and Base controller action server in two separate windows.
$ roslaunch rosbag_recorder rosbag_recorder_action_server.launch
$ roslaunch base_controller Base_controller.launch
For an experiment using VICON data in the RobotHub, use the Base controller below:
$ roslaunch base_controller Base_controller_vicon.launch
Next, run the desired demo node to pass the trajectory to the Base controller and start the recording.
$ rosrun waterloo_steel_sim_bringup Demo_V09_base_control_demo.py
This node will pass the specified trajectory to the Base controller action server. To change the way-points, go to the `SummitClass_V6_demo_base.py' file and change to the desired trajectory. Two simple trajectories are available. A circular motion, and a linear motion. Next to that, way-points can be defined in a .txt file and loaded.
To stop the experiment, shutdown the Base controller action server. This will stop the movement of the robot. Make sure to stop the Rosbag recorder action server as well to stop the recording, to prevent large sizes of rosbag files.
Important
Depending on where the Rosbag data is saved.
$ ls ~/.ros/bagfiles/waterloo_steel_demo/session_{id}/
Data copying can be done in 2 ways. For direct acces, connect one of the USB-C ports of the robot with an external drive. Then copy directly to the drive via SSH or NoMachine.
The second option is to copy over the network. This is not as fast, but might be convenient. Make sure to be connected to the robot wifi. This method will copy the entire bagfiles
folder.
$ scp -r [email protected]:~/UWARL_catkin_ws/src/waterloo_steel/waterloo_steel_viz/waterloo_steel_sim_bringup/bagfiles ~/{Folder in which you want to copy the files}