#include <almChoreoAgent.h>
Inherits srAlmende::AlmPuppet.
Public Member Functions | |
| AlmChoreoAgent (const std::string &name, srCore::RobotActorBase *robotActor) | |
| void | ProcessMessage (const dtGame::Message &message) |
This robot does have two wheels and one led. It is derived from the almEvolutionAgent which is able to listen to TCP/IP and receive commands to reposition it in the scene to the whims of an evolutionary engine talking over that TCP/IP line. This led on this robot is used to tell the almEvolutionAgent that it is finished in one evolutionary trial, it therefore calls PostProcessMessage of its parent class in the ProcessMessage routine.
Definition at line 24 of file almChoreoAgent.h.
| srAlmende::AlmChoreoAgent::AlmChoreoAgent | ( | const std::string & | name, | |
| srCore::RobotActorBase * | robotActor | |||
| ) |
The constructor is just a ControllerComponent, no additional fields needed.
Definition at line 12 of file almChoreoAgent.cpp.
| void srAlmende::AlmChoreoAgent::ProcessMessage | ( | const dtGame::Message & | message | ) |
The sender of this message already knows how to extract the type of the message, and the id of the receiver. It doesn't know how to interpret the rest of the message. The only thing that the almEvolutionAgent has to do is to transform the message in a position and place the robot in that position.
Reimplemented from srAlmende::AlmEvolutionAgent.
Definition at line 30 of file almChoreoAgent.cpp.
1.6.1