OdeAgent Class Reference

Specialised agent for ode robots. More...

#include <odeagent.h>

Inherits Agent.

Inherited by AtomOdeAgent.

Inheritance diagram for OdeAgent:

Inheritance graph
[legend]
Collaboration diagram for OdeAgent:

Collaboration graph
[legend]
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)
virtual ~OdeAgent ()
 destructor
virtual bool init (AbstractController *controller, OdeRobot *robot, AbstractWiring *wiring)
 initializes the object with the given controller, robot and wiring and initializes pipe to guilogger
virtual void step (double noise)
 Performs an step of the agent, including sensor reading, pushing sensor values through wiring, controller step, pushing controller outputs (= motorcommands) back through wiring and sent resulting motorcommands to robot.
void internInit ()
virtual OdeRobotgetRobot ()
 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.003)
 initialize tracing in ode

Private Attributes

int trace_length
double trace_thickness
int counter
bool tracing_initialized
OSGPrimitive ** segments
osg::Vec3 lastpos

Detailed Description

Specialised agent for ode robots.


Constructor & Destructor Documentation

OdeAgent const PlotOption plotOption = PlotOption(NoPlot),
double  noisefactor = 1
[inline]
 

constructor

OdeAgent const std::list< PlotOption > &  plotOptions,
double  noisefactor = 1
[inline]
 

virtual ~OdeAgent  )  [inline, virtual]
 

destructor


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

virtual bool init AbstractController controller,
OdeRobot robot,
AbstractWiring wiring
[inline, virtual]
 

initializes the object with the given controller, robot and wiring and initializes pipe to guilogger

Reimplemented in AtomOdeAgent.

void init_tracing int  tracelength = 1000,
double  tracethickness = 0.003
[virtual]
 

initialize tracing in ode

Parameters:
tracelength number of past positions shown as trace in osg
tracethickness thickness of the trace

void internInit  )  [inline]
 

Reimplemented from Agent.

void step double  noise  )  [virtual]
 

Performs an step of the agent, including sensor reading, pushing sensor values through wiring, controller step, pushing controller outputs (= motorcommands) back through wiring and sent resulting motorcommands to robot.

Parameters:
noise Noise strength.

Reimplemented from Agent.


Member Data Documentation

int counter [private]
 

osg::Vec3 lastpos [private]
 

OSGPrimitive** segments [private]
 

int trace_length [private]
 

double trace_thickness [private]
 

bool tracing_initialized [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Jan 16 02:14:49 2007 for Robotsystem of the Robot Group Leipzig by doxygen 1.3.8