Skip to content

Latest commit

 

History

History
88 lines (62 loc) · 1.5 KB

jont_client.md

File metadata and controls

88 lines (62 loc) · 1.5 KB

Joint Client Python Implementation


Joint Client creation

Open a terminal inside scripts folder and create a file name joint_client.py. Copy the content from joint_client.txt and paste. Open a terminal in the same location and Run

chmod +x joint_client.py

to enable execute permission.


CMakeLists.txt file modifications

Open lab_4_jointspacecontrol/CMakeLists.txt and add following lines to the bottom of the file.

catkin_install_python(PROGRAMS scripts/joint_client.py
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

Build the code

Go to root of the workspace

cd ~/robotics/
catkin build

or

catkin_make

Run the Joint Client

First open a terminal window, move to robotics folder, source the devel/setup.bash and start the gazebo simulation

cd robotics
source devel/setup.bash
roslaunch open_manipulator_gazebo open_manipulator_gazebo.launch

Start 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 robotics
source devel/setup.bash
roslaunch open_manipulator_controller open_manipulator_controller.launch use_platform:=false

Go to root of the workspace and on a new terminal

cd ~/robotics/
source devel/setup.bash
rosrun lab_4_jointspacecontrol joint_client.py

<< Back to Main menu