Materials from the UAVs@Berkeley Introduction to ROS Workshop.
(using ROS Development Studio or a local install of ROS Kinetic)
cd catkin_ws/src
catkin_create_pkg chatter std_msgs rospy roscpp
cd ~/catkin_ws
catkin_make
cd ~/catkin_ws/src/chatter/src
(Write the talker.py file)
(Write the listener.py file)
chmod +x talker.py listener.py
cd ~/catkin_ws
catkin_make
(In separate terminals)
roscore
rosrun chatter talker.py
rosrun chatter listner.py