9.9 RVSender

This is the class that defines the function required to draw shapes and text onto the RoboViz visualiser. For example if you want to clear all the drawings you would use the following line:

worldModel->getRVSender()->clear(); // erases drawings from previous cycle

And if we wanted to draw a point at the position of the ball we could use the following command in the strategy.cc file in the selectskill method.

worldModel->getRVSender()->drawPoint("ball", ball.getX(), ball.getY(), 10.0f, RVSender::MAGENTA);

All the methods required to draw all the different shapes and text can be found in the rvdraw.cc and rvdraw.h.