PlayerLaserMapper Class Reference

Laser mapper for player integration. More...

#include <laser_mapper.h>

Inheritance diagram for PlayerLaserMapper:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PlayerLaserMapper (std::string varname, fawkes::Laser360Interface *interface, PlayerCc::LaserProxy *proxy)
 Constructor.
virtual void sync_fawkes_to_player ()
 Sync Fawkes interface to Player proxy.
virtual void sync_player_to_fawkes ()
 Sync Player proxy to Fawkes interface.

Detailed Description

Laser mapper for player integration.

This class is used to map a Player lsaer proxy to a Fawkes Laser360Interface.

Author:
Tim Niemueller

Definition at line 36 of file laser_mapper.h.


Constructor & Destructor Documentation

PlayerLaserMapper::PlayerLaserMapper ( std::string  varname,
fawkes::Laser360Interface interface,
PlayerCc::LaserProxy *  proxy 
)

Constructor.

Parameters:
varname variable name
interface Fawkes interface instance
proxy Player proxy instance

Definition at line 42 of file laser_mapper.cpp.


Member Function Documentation

void PlayerLaserMapper::sync_fawkes_to_player (  )  [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 81 of file laser_mapper.cpp.

void PlayerLaserMapper::sync_player_to_fawkes (  )  [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 54 of file laser_mapper.cpp.

References fawkes::rad2deg(), fawkes::Laser360Interface::set_distances(), and fawkes::Interface::write().


The documentation for this class was generated from the following files:

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1