- Create a package folder “hw2” in a ros work space, under the “src” folder
- Copy "CMakeLists.txt", "package,xml" into hw2 package folder
- Create a folder “src” under the hw2 folder, and copy "shape1.cpp", "shape2.cpp" into the src folder
- Run "catkin_make" from the root of work space
terminal 1: Run the master node
roscore
terminal 2: Run turtlesim
source devel/setup.bash
rosmake turtlesim
rosrun turtlesim turtlesim_node
terminal 3: Run shapeX
source devel/setup.bash
rosrun hw2 shapeX