Skip to content

Assignment 6: Draw a Star

Now it's time to get some experience building your own ROS node in both C++ and Python. This assignment is intended to be more challenging than previous assignments and will probably require using knowledge gained from additional tutorials, lab mates, and/or online resources.

  1. Create a node using C++ which makes the turtle in TurtleSim draw a star when run.
  2. Repeat this assignment, but use Python instead of C++.

star.png

NOTE: The star doesn't have to be perfect.

Hint: A useful tool for C++ might be the ROS::Rate Class. A useful tool for python might be the rospy.Time class and/or the rospy.Duration class.