OdeAgent Class Reference
Specialised agent for ode robots.
More...
#include <odeagent.h>
Inherits Agent.
List of all members.
Public Member Functions |
| OdeAgent (const PlotOption &plotOption=PlotOption(NoPlot), double noisefactor=1) |
| constructor
|
| OdeAgent (const std::list< PlotOption > &plotOptions, double noisefactor=1) |
| OdeAgent (const GlobalData &globalData, double noisefactor=1) |
virtual | ~OdeAgent () |
| destructor
|
virtual bool | init (AbstractController *controller, OdeRobot *robot, AbstractWiring *wiring, long int seed=0) |
| initializes the object with the given controller, robot and wiring and initializes pipe to guilogger
|
virtual void | step (double noise, double time) |
| Performs an step of the agent, including sensor reading, pushing sensor values through the wiring, controller step, pushing controller outputs (= motorcommands) back through the wiring and sent resulting motorcommands to robot.
|
virtual void | stepOnlyWiredController (double noise, double time) |
| Special function for the class Simulation to seperate the step of the WiredController (plus TrackRobot) and the setting and getting of the motor- and sensorvalues.
|
virtual void | setMotorsGetSensors () |
| Special function for the class Simulation to seperate the step of the WiredController (plus TrackRobot) and the setting and getting of the motor- and sensorvalues.
|
void | internInit () |
virtual OdeRobot * | getRobot () |
| Returns a pointer to the robot.
|
virtual int | getTraceLength () |
| gives the number of past robot positions shown as trace in osg
|
virtual void | init_tracing (int tracelength=1000, double tracethickness=0.05) |
| initialize tracing in ode
|
virtual void | trace () |
| continues the trace by one segment
|
Detailed Description
Specialised agent for ode robots.
- Examples:
-
template_sphererobot/main.cpp.
Constructor & Destructor Documentation
Member Function Documentation
virtual OdeRobot* getRobot |
( |
|
) |
[inline, virtual] |
Returns a pointer to the robot.
Reimplemented from Agent.
virtual int getTraceLength |
( |
|
) |
[inline, virtual] |
gives the number of past robot positions shown as trace in osg
void init_tracing |
( |
int |
tracelength = 1000 , |
|
|
double |
tracethickness = 0.05 | |
|
) |
| | [virtual] |
initialize tracing in ode
- Parameters:
-
| tracelength | number of past positions shown as trace in osg |
| tracethickness | thickness of the trace |
void internInit |
( |
|
) |
[inline] |
void setMotorsGetSensors |
( |
|
) |
[virtual] |
void step |
( |
double |
noise, |
|
|
double |
time | |
|
) |
| | [virtual] |
Performs an step of the agent, including sensor reading, pushing sensor values through the wiring, controller step, pushing controller outputs (= motorcommands) back through the wiring and sent resulting motorcommands to robot.
- Parameters:
-
| noise | Noise strength. |
| time | (optional) current simulation time (used for logging) |
Reimplemented from Agent.
void stepOnlyWiredController |
( |
double |
noise, |
|
|
double |
time | |
|
) |
| | [virtual] |
continues the trace by one segment
The documentation for this class was generated from the following files: