FUN4: Hello world
Please Install this follower Package on your environment
- Teleop_twist_keyboard for control manipulator But it also have this Package in this git
- Clone workspace :
git clone https://github.com/Aitthikit/FUN4_6562.git
- Navigate to the workspace directory :
cd FUN4_6562
- Remove build install log(if it have in workspace) :
rm -rf build/ install/ log/
- Build :
colcon build
- Source workspace :
source install/setup.bash
- Run launch file :
ros2 launch example_description all_launch.py
- Use service to select mode
ros2 service call /mode robot_interface/srv/Mode "mode:
data: 2
point:
layout:
dim: []
data_offset: 0
data: [0.0,0.0,0.0]
mode_tele:
data: 1"
-
mode
- data: 1 = Inverse Pose Kinematics (IPK)
- data: 2 = Teleoperation
- data: 3 = Auto
-
point (use for point target to mode Inverse Pose Kinematics (IPK))
- data: [x,y,z] (only float format)
-
mode_tele (use for select in mode Auto)
- data: 1 = Reference to base
- data: 2 = Reference to end-effector
like example is select mode Teleoperation and mode_tele Reference to base
- Interface monitor
ros2 topic echo /singularity_notify
- Teleop_keyboard to control mode Teleoperation
ros2 run teleop_twist_keyboard teleop_twist_keyboard
source install/setup.bash