backtrack - Copy (2) - virtual ArActionDesired...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#pragma once #include "Aria.h" # class ActionBack: public ArAction { public: // constructor, sets the turnThreshold, and turnAmount ActionBack(void); // destructor, its just empty, we don't need to do anything virtual ~ActionBack(void) {}; // fire, this is what the resolver calls to figure out what this action wants
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: virtual ArActionDesired *fire(ArActionDesired currentDesired); // sets the robot pointer, also gets the sonar device, or deactivates this action if there is no sonar. virtual void setRobot(ArRobot *robot); protected: ArActionDesired myDesired; double myHeading; ArPose nextPos; };...
View Full Document

Ask a homework question - tutors are online