Sample code to call the ros2 apis
- Enable the ROS2 API and ROS2 Bridge features from the Standard Bots app (Settings -> Configure Developer API)
- Update the
cyclonedds.xmlNetworkInterface name to the adapter you will be using - Build
- Run
- Confirm the following ROS2 topics are visible via
ros2 topic list
/{BOT_ID}/ro1/can/send
/{BOT_ID}/ro1/hardware/end_effector_imu
/{BOT_ID}/ro1/hardware/jacobian
/{BOT_ID}/ro1/hardware/joint_state
/{BOT_ID}/ro1/hardware/joint_trajectory
/{BOT_ID}/ro1/hardware/pose
/{BOT_ID}/ro1/hardware/pose/write
/{BOT_ID}/ro1/hardware/scaling_factor
/{BOT_ID}/ro1/hardware/tooltip_velocity
/{BOT_ID}/ro1/modbus/receive
/{BOT_ID}/ro1/modbus/send
./build.sh
./run.sh
./run.sh python3 ./src/write_poses.py --bot-id=<ROBOT_ID> ./data/pose1.log"
./run_shell.shpython3 ./src/read_joint_states.py --bot-id=<ROBOT_ID>
