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