mkdir scripts
Open a terminal in the file location and Run
chmod +x server.py
Open a terminal in the file location and Run,
chmod +x client.py
Open session3_cliserver/CMakeLists.txt and add following lines to the bottom of the file.
catkin_install_python(PROGRAMS scripts/client.py scripts/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 session3_cliserver server.py
Open a 3rd terminal in the workspace root and run,
source devel/setup.bash
rosrun session3_cliserver client.py