Teleoperation without FT sensors¶
This tutorial describes how to set the teleoperation station with TIAGo Pro in case the teleoperation station arms do not have F/T sensors.
In what follows pilot is the teleoperation station and robot is the TIAGo Pro robot this is attached to.
With no F/T sensors:
- The pilot arms are in
gravity_compensationin effort mode, and - The robot arms mirror the pilots's motion using the
joint_trajectory_controllerin position interface. - The mirror_controller reads the pilot's joint states and sets them as joint posistion command to the robot.
Step 0: Attach the teleoperation station¶
Follow this tutorial.
Step 1: Initial setup¶
Put both pairs of arms in the same configuration. There are corresponding motions for pilot and robot that can be triggered with play_motion2. Connect to the TIAGo Pro robot and run
ros2 run play_motion2 run_motion starting_pilot_arms
ros2 run play_motion2 run_motion starting_robot_arms
Warning
This first step is mandatory to be able to mirror properly.
Step 2: Load the mirror controllers¶
Load the mirror_controller, that reads the joint states of the pilot and publishes them
ros2 launch arm_teleop mirror_controller.launch.py side:=right &&
ros2 launch arm_teleop mirror_controller.launch.py side:=left
Step 3: Launch the demo¶
To launch the demo, you have to first activate the controllers by doing
ros2 run arm_teleop gravity_mirror_demo.py --ros-args -p side:=right &&
ros2 run arm_teleop gravity_mirror_demo.py --ros-args -p side:=left
This activates the gravity compensation in the pilot and the mirror controller-
Step 4: Activate the trigger controller in the handle¶
Load the trigger gripper controller by doing
ros2 launch arm_teleop trigger_gripper_controller.launch.py side:=left &&
ros2 launch arm_teleop trigger_gripper_controller.launch.py side:=right
and activate them by doing
ros2 control switch_controllers \
--activate trigger_gripper_left trigger_gripper_right \
--deactivate gripper_left_controller gripper_right_controller