Source code for the laboratory session 5 of the ROBT403 course
This code has been tested on ROS Melodic
- git clone https://github.com/arebgun/dynamixel_motor
- git clone https://github.com/KNurlanZ/snake-noetic.git
- source /opt/ros/melodic/setup.bash
- source ~/CATKIN_WORKSPACE/devel/setup.bash
- catkin_make
- roslaunch snake_moveit_config moveit_gazebo.launch
- roslaunch snake_moveit_config moveit_planing_execution.launch
- rosrun snake_move step
- rosbag record /joint_states /end_joint_x /end_joint_y
- rostopic echo -b 2022-10-09-19-41-37.bag -p /joint_states > data_joint_states.csv
- rostopic echo -b 2022-10-09-19-41-37.bag -p /end_joint_x > data_end_x.csv
- rostopic echo -b 2022-10-09-19-41-37.bag -p /end_joint_y > data_end_y.csv
Run plot.m Matlab file