23 #include "mapper_factory.h" 24 #include "position_mapper.h" 25 #include "motor_mapper.h" 26 #include "laser_mapper.h" 28 #include <interfaces/ObjectPositionInterface.h> 29 #include <interfaces/MotorInterface.h> 30 #include <interfaces/Laser360Interface.h> 31 #include <libplayerc++/playerc++.h> 55 PlayerCc::ClientProxy *proxy)
59 if ( (rv = try_create<ObjectPositionInterface, Position2dProxy, PlayerPositionMapper>(varname, interface, proxy)) != NULL ) {
61 }
else if ( (rv = try_create<MotorInterface, Position2dProxy, PlayerMotorPositionMapper>(varname, interface, proxy)) != NULL ) {
63 }
else if ( (rv = try_create<Laser360Interface, LaserProxy, PlayerLaserMapper>(varname, interface, proxy)) != NULL ) {
66 throw Exception(
"Unknown mapping, don't know how to map Fawkes interface %s " 68 interface->
type(), proxy->GetInterfaceStr().c_str());
Fawkes library namespace.
Base class for all Fawkes BlackBoard interfaces.
Player proxy to Fawkes interface mapper interface.
const char * type() const
Get type of interface.
Base class for exceptions in Fawkes.
static PlayerProxyFawkesInterfaceMapper * create_mapper(std::string varname, fawkes::Interface *interface, PlayerCc::ClientProxy *proxy)
Create a mapp instance.