Open a terminal inside scripts folder and create a file name jplanner.py. Copy the content from jplanner.txt and paste. Open a terminal in the same location and Run
chmod +x jplanner.pyto enable execute permission.
Open a terminal inside scripts folder and create a file name jclient.py. Copy the content from jclient.txt and paste. Open a terminal in the same location and Run
chmod +x jclient.pyto enable execute permission.
Open lab_6_jointTrajectoryPlanner/CMakeLists.txt and add following lines to the bottom of the file.
catkin_install_python(PROGRAMS scripts/jplanner.py scripts/jclient.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)Go to root of the workspace
cd ~/robotics/catkin buildor
catkin_makeFirst open a terminal window, move to robotics folder, source the devel/setup.bash and start the gazebo simulation
cd roboticssource devel/setup.bashroslaunch open_manipulator_gazebo open_manipulator_gazebo.launchStart the simulation by pressing the "play" button in the lower part of the screen.
Then open another terminal window, move to robotics folder, source the devel/setup.bash and start the gazebo controller
cd roboticssource devel/setup.bashroslaunch open_manipulator_controller open_manipulator_controller.launch use_platform:=falseThen open another terminal window, move to robotics folder, source the devel/setup.bash and start the JointSpaceControllerServer
cd ~/robotics/source devel/setup.bashrosrun lab_6_jointTrajectoryPlanner jplanner.pyThen open another terminal window, move to robotics folder, source the devel/setup.bash and start the JointSpaceControllerClient
cd ~/robotics/source devel/setup.bashrosrun lab_6_jointTrajectoryPlanner jclient.py