gusimplewhiteboard
guWhiteboard::WEBOTS_NXT_vector_bridge Class Reference

#include <WEBOTS_NXT_bridge.hpp>

Collaboration diagram for guWhiteboard::WEBOTS_NXT_vector_bridge:

Public Member Functions

 PROPERTY (int16_t, theRobotID) PROPERTY(int16_t
 The robot this status is for. More...
 
speedLeftMotor PROPERTY (int16_t, speedRightMotor) PROPERTY(int16_t
 The current speed of the right motor. More...
 
speedLeftMotor soundFrequency PROPERTY (int16_t, soundDuration) WEBOTS_NXT_vector_bridge()
 The current duration we are playing a sound for. More...
 
 WEBOTS_NXT_vector_bridge (const std::string &names)
 string constructor More...
 
 WEBOTS_NXT_vector_bridge (const WEBOTS_NXT_vector_bridge &other)
 copy constructor More...
 
WEBOTS_NXT_vector_bridgeoperator= (const WEBOTS_NXT_vector_bridge &other)
 copy assignment operator More...
 
std::string description () const
 convert to a string More...
 
void from_string (const std::string &strWithID)
 convert from a string More...
 
void set_actuator (DifferentialInstructions theActuator, int16_t firstParameter, int16_t secondParameter)
 Sets the WEBOTS_NXT_vector_bridge instance properties that represent actuator states based on the specified DifferentialInstruction. More...
 

Detailed Description

Class for demonstrating OO-messages in sequential arrangement of finite state machines

using a full vector of status and commands

Definition at line 186 of file WEBOTS_NXT_bridge.hpp.

Constructor & Destructor Documentation

◆ WEBOTS_NXT_vector_bridge() [1/2]

guWhiteboard::WEBOTS_NXT_vector_bridge::WEBOTS_NXT_vector_bridge ( const std::string &  names)
inline

string constructor

Definition at line 213 of file WEBOTS_NXT_bridge.hpp.

References from_string().

◆ WEBOTS_NXT_vector_bridge() [2/2]

guWhiteboard::WEBOTS_NXT_vector_bridge::WEBOTS_NXT_vector_bridge ( const WEBOTS_NXT_vector_bridge other)
inline

copy constructor

Definition at line 216 of file WEBOTS_NXT_bridge.hpp.

Member Function Documentation

◆ description()

std::string guWhiteboard::WEBOTS_NXT_vector_bridge::description ( ) const
inline

◆ from_string()

void guWhiteboard::WEBOTS_NXT_vector_bridge::from_string ( const std::string &  strWithID)
inline

◆ operator=()

WEBOTS_NXT_vector_bridge & guWhiteboard::WEBOTS_NXT_vector_bridge::operator= ( const WEBOTS_NXT_vector_bridge other)
inline

copy assignment operator

Definition at line 224 of file WEBOTS_NXT_bridge.hpp.

◆ PROPERTY() [1/3]

speedLeftMotor soundFrequency guWhiteboard::WEBOTS_NXT_vector_bridge::PROPERTY ( int16_t  ,
soundDuration   
)
inline

The current duration we are playing a sound for.

Definition at line 208 of file WEBOTS_NXT_bridge.hpp.

◆ PROPERTY() [2/3]

speedLeftMotor guWhiteboard::WEBOTS_NXT_vector_bridge::PROPERTY ( int16_t  ,
speedRightMotor   
)

The current speed of the right motor.

The current frequency for a sound we are playing

◆ PROPERTY() [3/3]

guWhiteboard::WEBOTS_NXT_vector_bridge::PROPERTY ( int16_t  ,
theRobotID   
)

The robot this status is for.

The current speed of the left motor.

◆ set_actuator()

void guWhiteboard::WEBOTS_NXT_vector_bridge::set_actuator ( DifferentialInstructions  theActuator,
int16_t  firstParameter,
int16_t  secondParameter 
)
inline

Sets the WEBOTS_NXT_vector_bridge instance properties that represent actuator states based on the specified DifferentialInstruction.

Parameters
theActuatorThe Actuator to be set
firstParameterThe first parameter for the actuator (presently unused)
secondParameterThe second parameter, which is used to set the Sound Duration and Frequency properties.

Definition at line 312 of file WEBOTS_NXT_bridge.hpp.

References guWhiteboard::CAMERA, guWhiteboard::DISTANCE, guWhiteboard::INTENSITY_LIGHT, guWhiteboard::LIGHTUP_LED, guWhiteboard::MOVE_MOTORS, guWhiteboard::NUMBER_WEBOTS_NXT_bridge_MESSAGES, guWhiteboard::ONE_MOTOR_SETTING, guWhiteboard::PLAY_SOUND, guWhiteboard::ROTATION_ENCODER, guWhiteboard::SOUND_DURATION, guWhiteboard::SOUND_FREQUENCY, and guWhiteboard::TOUCH.


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