This program is for an autonomous robot for the competition at the Hochschule Luzern. http://cruisingcrepe.wordpress.com/ We are one of the 32 teams. http://cruisingcrepe.wordpress.com/ The postition control is based on this Documentation: Control of Wheeled Mobile Robots: An Experimental Overview from Alessandro De Luca, Giuseppe Oriolo, Marilena Vendittelli. For more information see here: http://www.dis.uniroma1.it/~labrob/pub/papers/Ramsete01.pdf
Fork of autonomous Robot Android by
Task Class Reference
The Task
class allows to install periodic, time-triggered tasks. An example of a simple user-defined task is given below:
More...
#include <Task.h>
Inherited by RobotControl, and State.
Public Member Functions | |
Task (float period) | |
Creates a task object with a given period. | |
float | getPeriod () |
Gets the period of this task. | |
void | start () |
Starts this task. | |
void | stop () |
Stops this task. | |
virtual void | run () |
This method needs to be implemented by a user task. |
Detailed Description
The Task
class allows to install periodic, time-triggered tasks. An example of a simple user-defined task is given below:
Copyright (c) 2013 HSLU Pren Team #1 Cruising Crêpe All rights reserved.
class MyTask : public Task {
public:
void run();
};
void MyTask::run() {
// code to be executed periodically
}
This task can then be created and started as follows:
MyTask myTask(0.1); // period in seconds
myTask.start();
...
myTask.stop();
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition at line 42 of file Task.h.
Constructor & Destructor Documentation
Task | ( | float | period ) |
Member Function Documentation
float getPeriod | ( | ) |
void run | ( | ) | [virtual] |
This method needs to be implemented by a user task.
Reimplemented in RobotControl, and State.
Generated on Tue Jul 12 2022 14:15:59 by 1.7.2