Fawkes API
Fawkes Development Version
|
Position mapper for player integration. More...
#include "position_mapper.h"
Public Member Functions | |
PlayerPositionMapper (std::string varname, fawkes::ObjectPositionInterface *interface, PlayerCc::Position2dProxy *proxy) | |
Constructor. More... | |
virtual void | sync_fawkes_to_player () |
Sync Fawkes interface to Player proxy. More... | |
virtual void | sync_player_to_fawkes () |
Sync Player proxy to Fawkes interface. More... | |
![]() | |
PlayerProxyFawkesInterfaceMapper (std::string varname) | |
Constructor. More... | |
virtual | ~PlayerProxyFawkesInterfaceMapper () |
Virtual empty destructor. More... | |
std::string | varname () const |
Get variable name. More... | |
Position mapper for player integration.
This class is used to map a Player position2d proxy to a Fawkes ObjectPositionInterface.
Definition at line 36 of file position_mapper.h.
PlayerPositionMapper::PlayerPositionMapper | ( | std::string | varname, |
fawkes::ObjectPositionInterface * | interface, | ||
PlayerCc::Position2dProxy * | proxy | ||
) |
Constructor.
varname | variable name |
interface | Fawkes interface instance |
proxy | Player proxy instance |
Definition at line 40 of file position_mapper.cpp.
|
virtual |
Sync Fawkes interface to Player proxy.
This method should be implemented to copy any outstanding data from the Fawkes interface (messages) to the Player interface. This method will be called in the ACT_EXEC hook of the BlockedTimingAspect (cf. MainLoop).
Implements PlayerProxyFawkesInterfaceMapper.
Definition at line 65 of file position_mapper.cpp.
|
virtual |
Sync Player proxy to Fawkes interface.
This method should be implemented to copy any outstanding data from the Player proxy to the Fawkes interface. This method will be called in the ACT_EXEC hook of the BlockedTimingAspect (cf. MainLoop).
Implements PlayerProxyFawkesInterfaceMapper.
Definition at line 51 of file position_mapper.cpp.
References fawkes::ObjectPositionInterface::set_relative_x(), fawkes::ObjectPositionInterface::set_relative_y(), fawkes::ObjectPositionInterface::set_relative_z(), and fawkes::Interface::write().