mkdir scripts
Open a terminal in the file location and Run
chmod +x ac_server.py
Open a terminal in the file location and Run,
chmod +x ac_client.py
Open session4_action/CMakeLists.txt and add following lines to the bottom of the file.
catkin_install_python(PROGRAMS scripts/ac_client.py scripts/ac_server.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
Go to root of the workspace
cd ~/ros_workshop/
catkin build
or
catkin_make
Open a terminal and run,
roscore
Open a 2nd terminal in the workspace root and run,
source devel/setup.bash
rosrun session4_action ac_server.py
Open a 3rd terminal in the workspace root and run,
source devel/setup.bash
rosrun session4_action ac_client.py