gusimplewhiteboard
|
/file APM_Interface.h More...
Namespaces | |
namespace | LEDs |
namespace | Motions |
namespace | Sonar |
Typedefs | |
typedef wb_types | WBTypes |
typedef enum guWhiteboard::remote_wb_id | RWBMachine |
Remote WB enum. More... | |
typedef struct guWhiteboard::gsw_hash_info | gsw_hash_info |
Message offset holder. More... | |
Enumerations | |
enum | remote_wb_id { Machine1 = 0 , Machine2 , Machine3 , Machine4 , NUM_OF_MACHINES } |
Remote WB enum. More... | |
enum | OLDDifferentialMotor { OLD_LEFT_MOTOR_DIFFERENTIAL = 0 , OLD_RIGHT_MOTOR_DIFFERENTIAL = 1 , OLD_NXT_MOTOR3 = 2 } |
enum | TeamColors : int8_t { BLUE =0 , RED , YELLOW , BLACK , WHITE , GREEN , ORANGE , PURPLE , BROWN , GRAY , NUM_JERSEY_COLORS } |
Team Colours. More... | |
enum | CompetitionType : int8_t { NormalCompetition , MixedTeam , NUM_COMPETITION_TYPES } |
Type of the competition. More... | |
enum | CompetitionPhase : int8_t { RoundRobin , PlayOff , NUM_COMPETITION_PHASES } |
Phase of the competition. More... | |
enum | GamePhase : int8_t { NormalPhase , PenaltyShoot , Overtime , Timeout } |
Phase of the game. More... | |
enum | GameState : int8_t { Initial , Ready , Set , Playing , Finished , NUM_GAME_STATES } |
High level Game Controller states. More... | |
enum | SetPlay : int8_t { NoSetPlay , GoalFreeKick , PushingFreeKick , CornerKick , KickIn , NUM_SET_PLAY_TYPES } |
Set play codes. More... | |
enum | PenaltyTypes : int8_t { NoPenalty = 0 , IllegalBallContact , PlayerPushing , IllegalMotionInSet , InactivePlayer , IllegalDefender , LeavingTheField , KickOffGoal , RequestForPickUp , LocalGameStuck , IllegalPositioning , SubstitutionPenalty = 14 , ManualPenalty = 15 } |
Penalty types. More... | |
enum | HomeAway : int8_t { Home =0 , Away =1 } |
Used to nominate which team is home/away and to decouple game state from team specifics. More... | |
enum | GameHalf : int8_t { SecondHalf , FirstHalf } |
Soccer games comprise of two halves. More... | |
enum | BallOut : int8_t { OutByHome , OutByAway } |
Who kicked the ball out. More... | |
enum | GameControllerCommand : int8_t { InitialReceived , ReadyReceived , SetReceived , PlayingReceived , FinishedReceived } |
received command from the Game Controller More... | |
enum | GameContollerSignal : int8_t { NoGSsignal , GSOurGoalSignalPushed , GSTheirGoalSignalPushed , GSBlueKickOffSignalPushed , GSRedKickOffSignalPushed } |
major game event signals (goals, kick-offs) More... | |
enum | LEDColour { Off = -1 , Red = 0 , Green , Blue , Yellow , White , NUMBER_OF_LEDS_COLOURS } |
Predefined colour values, feel free to add more, just implement them in changeLedColour. More... | |
enum | LEDGroups { AllLEDs = 0 , Ears , LEar , REar , Eyes , LEye , REye , Chest , Feet , LFoot , RFoot , NUMBER_OF_LEDS_GROUPS } |
enum | FSMControlType { FSMStatus , FSMSuspend , FSMResume , FSMRestart } |
command for ControlStatus More... | |
enum | DifferentialMotor { LEFT_MOTOR_DIFFERENTIAL = 0 , RIGHT_MOTOR_DIFFERENTIAL = 1 , NXT_MOTOR3 = 2 } |
Enumerations of motor's in the NXT and E-Puck differential robots. More... | |
enum | SoundDiscriminators { SOUND_DURATION = 0 , SOUND_FREQUENCY = 1 } |
Enumeration of the Sound parameter settings. More... | |
enum | SonarSensorID { LEFT_SONAR_SENSOR = 0 , RIGHT_SONAR_SENSOR = 1 } |
Enumeration of the Sonar Sensors in the NXT and E-Puck differential robots. More... | |
enum | LightSensorID { LEFT_LIGHT_SENSOR = 0 , RIGHT_LIGHT_SENSOR = 1 } |
Enumeration of the Light Sensors in the NXT differential robot. More... | |
enum | TouchSensorID { LEFT_TOUCH_SENSOR = 0 , RIGHT_TOUCH_SENSOR = 1 , NXT_NUM_SENSORS_IN_BUMBER = 2 } |
Enumeration of the Touch Sensors in the NXT and E-Puck differential robots. More... | |
enum | NXT_Sensor_Ports { NXT_PORT_1 = 0 , NXT_PORT_2 = 1 , NXT_PORT_3 = 2 , NXT_PORT_4 = 3 } |
Enumeration of the Sensor ports available in the NXT differential robot. More... | |
enum | CAMERA_E_PUCK_CHANNELS { BLUE_CHANNEL = NXT_PORT_1 , RED_CHANNEL = NXT_PORT_2 , GREEN_CHANNEL = NXT_PORT_3 , GREY_CHANNEL = NXT_PORT_4 } |
Enumeration of the Colour Channels available in camera of the E-Puck differential robot. More... | |
enum | DifferentialInstructions { MOVE_MOTORS = 0 , ONE_MOTOR_SETTING = 1 , PLAY_SOUND = 2 , LIGHTUP_LED = 3 , DISTANCE = 4 , INTENSITY_LIGHT = 5 , ROTATION_ENCODER = 6 , CAMERA = 7 , TOUCH = 8 , NUMBER_WEBOTS_NXT_bridge_MESSAGES } |
Enumeration of the defined general instructions. More... | |
enum | ColorLineInstructions { FOLLOW_COLOR = 0 , TURN_RIGHT_UNTIL_COLOR_FOUND = 1 , TURN_LEFT_UNTIL_COLOR_FOUND = 2 } |
Enumeration of the available strategies when following lines. More... | |
enum | GridStep { YELLOW_LINE_STRAIGHT_STEP = 0 , MAGENTA_LINE_STRAIGHT_STEP = 1 , PLAIN_LINE_STRAIGHT_STEP = 2 , TURN_LEFT_STEP = 3 , TURN_RIGHT_STEP = 4 , COMPLETED = 5 } |
Enumeration of ID's for motions of the differential robot. More... | |
Functions | |
string | getmsg (std::string message_type, gu_simple_message *msg=NULLPTR, gu_simple_whiteboard_descriptor *wbd=NULLPTR) |
A generic C++ function that gets a string from the whiteboard. More... | |
string | getmsg (wb_types message_index, gu_simple_message *msg, gu_simple_whiteboard_descriptor *wbd) |
std::string | getmsg (guWhiteboard::wb_types message_index, gu_simple_message *msg=NULLPTR, gu_simple_whiteboard_descriptor *wbd=NULLPTR) |
Generic C++ function that gets a message with a given message number to the whiteboard. More... | |
bool | post (std::string message_type, std::string message_content, gu_simple_whiteboard_descriptor *wbd=NULLPTR) |
A generic C++ function that posts to the whiteboard. More... | |
bool | postmsg (wb_types message_index, std::string message_content, gu_simple_whiteboard_descriptor *wbd) |
bool | postmsg (guWhiteboard::wb_types message_index, std::string message_content, gu_simple_whiteboard_descriptor *wbd=NULLPTR) |
Generic C++ function that posts a message with a given message number to the whiteboard. More... | |
Variables | |
struct whiteboard_types_map | types_map |
Global map from names to message types. More... | |
typedef::wb_types | wb_types |
const char * | kHelloWBMsg = "HELLO_MESSAGE" |
Hello World message name. More... | |
const char * | kSay = "Say" |
Speech message (string) More... | |
const char * | kQSay = "QSay" |
Queuing speech message (string) More... | |
const char * | kSpeechWBMsg = "Speech" |
Debug speech message (string) – only use for debugging, as this will only work if "SpeechOutput" "On" was sent previously. More... | |
const char * | kQSpeech = "QSpeech" |
Queuing debug speech message (string) – only use for debugging, as this will only work if "SpeechOutput" "On" was sent previously. More... | |
const char * | kSpeechOutput = "SpeechOutput" |
Whiteboard message for conditional speech output. More... | |
const char * | kUpdateAllProofs = "updateProofs" |
Whiteboard message (string) for updating all proofs. More... | |
const char * | kUpdateProof = "updateProofsForOutput" |
Whiteboard message (string) for updating a proof for a given output. More... | |
const char * | kUpdateAllProofsForTheory = "updateProofsForTheory" |
Whiteboard message (string) for updating proofs for a given theory. More... | |
const char * | kRobocup_ourTeam = "Robocup_ourTeam" |
const char * | kRobocup_kickOffTeam = "Robocup_kickOffTeam" |
const char * | kOn = "On" |
Whiteboard message (string) for turn on modules. More... | |
const char * | kOff = "Off" |
Whiteboard message (string) for turn off modules. More... | |
const char * | kDifferentialMotorPower = "gudifferential_motorPower" |
Differential Robot Whiteboard message to turn a motor on Content (Array): Motor(left = 0, right = 1), power %. More... | |
const char * | kDifferentialPlaySound = "gudifferential_playSound" |
Differential Robot Whiteboard message to start playing a sound Content (Int): Duration in milisecond. More... | |
const char * | kDifferentialStopSound = "gudifferential_stopSound" |
Differential Robot Whiteboard message to stop playing a sound Content (Int): Duration in milisecond. More... | |
const char * | kDifferentialStopTouch = "gudifferential_stopTouchSensor" |
Differential Robot message to stop a touch sensor reporting Content (Int): Id of touch sensor for NXT(1, 2, 3 or 4) More... | |
const char * | kDifferentialStartTouch = "gudifferential_startTouchSensor" |
Differential Robot message to start a touch sensor reporting Content (Int): Id of touch sensor for NXT(1, 2, 3 or 4) More... | |
const char * | kDifferentialTouchValue = "gudifferential_touchSensorValue" |
Differential Robot Whiteboard message reporting the value of a touch sensor, the message type is appended with an active Id of touch sensor for NXT(1, 2, 3 or 4) content is the value of sensor, 0 if released, 1 if pressed. More... | |
const char * | kDifferentialStartDistance = "gudifferential_startDistanceSensor" |
Differential Robot message to start a sonar sensor reporting Content (Int): Id of touch sensor for NXT(1, 2, 3 or 4) More... | |
const char * | kDifferentialStopDistance = "gudifferential_stopDistanceSensor" |
Differential Robot message to STOP a sonar sensor reporting Content (Int): Id of touch sensor for NXT(1, 2, 3 or 4) More... | |
const char * | kDifferentialDistanceValue = "gudifferential_distanceSensorValue" |
Differential Robot Whiteboard message reporting the value of a sonar sensor, the message type is appended with an active Id of touch sensor for NXT(1, 2, 3 or 4) content is the value of sensor, in cm. More... | |
const char * | kDifferentialStartRotationSensor = "gudifferential_startRotationSensor" |
Differential Robot message to start a rotation sensor reporting Content (Int): Id of relevant motor Id of motor 0=left, 1=right 2 third for MiPAL NXT wired robots, C=left adn B= right. More... | |
const char * | kDifferentialStopRotationSensor = "gudifferential_stopRotationSensor" |
Differential Robot message to STOP a rotation sensor reporting Content (Int): Id of relevant motor Id of motor 0=left, 1=right 2 third for MiPAL NXT wired robots, C=left adn B= right. More... | |
const char * | kDifferentialRotationValue = "gudifferential_rotationSensorValue" |
Differential Robot Whiteboard message reporting the value of a rotation on a motor, the message type is appended with an active Id of motor 0=left, 1=right 2 third for MiPAL NXT wired robots, C=left adn B= right content is the value of sensor, in laps. More... | |
const char * | kDifferentialStartLight = "gudifferential_startLightSensor" |
Differential Robot Whiteboard message to start a light sensor Content (Int): Id of light sensor for NXT sensors(1, 2, 3 or 4) More... | |
const char * | kDifferentialStopLight = "gudifferential_stopLightSensor" |
Differential Robot Whiteboard message to stop a light sensor Content (Int): Id of light sensor for NXT sensors(1, 2, 3 or 4) More... | |
const char * | kDifferentialLightValue = "gudifferential_lightSensorValue" |
Differential Robot Whiteboard message providing the value of a light sensor. More... | |
const char * | kDifferentialLedOn = "gudifferential_ledOn" |
Differential Robot Whiteboard message to turn on a led. More... | |
const char * | kDifferentialLedOff = "gudifferential_ledOff" |
Differential Robot Whiteboard message to turn off a led. More... | |
const char * | kOnWhiteboard |
Soap callback key for message subscriber method. More... | |
/file APM_Interface.h
/file SENSORSSonarSensors.h
/file SENSORSLedsSensors.h
/file Oculus_PrimeSerialInterface.h
/file NXT_Interface.h
/file NAO_State.h
/file HalLegTarget.h
/file HAL_HeadTarget.h
/file HalArmTarget.h
/file Giraff_MainSerialInterface.h
Created by Carl Lusty in 2014.
Copyright (c) 2014 Carl Lusty
All rights reserved.
Created by Dimitri Joukoff 2016. Copyright (c) 2016 Dimitri Joukoff All rights reserved.
Created by Carl Lusty in 2013.
Copyright (c) 2013 Carl Lusty
All rights reserved.
Created by Carl Lusty in 2015.
Copyright (c) 2015 Carl Lusty
All rights reserved.
typedef struct guWhiteboard::gsw_hash_info guWhiteboard::gsw_hash_info |
Message offset holder.
Allows the user to avoid running the hashing function more than once to get a message offset
typedef enum guWhiteboard::remote_wb_id guWhiteboard::RWBMachine |
Remote WB enum.
Allows the user specify a remote wb to talk about
typedef wb_types guWhiteboard::WBTypes |
Definition at line 31 of file guwhiteboardtypelist_generated.h.
enum guWhiteboard::BallOut : int8_t |
Who kicked the ball out.
Enumerator | |
---|---|
OutByHome | |
OutByAway |
Definition at line 199 of file GCGameState.hpp.
Enumeration of the Colour Channels available in camera of the E-Puck differential robot.
Enumerator | |
---|---|
BLUE_CHANNEL | |
RED_CHANNEL | |
GREEN_CHANNEL | |
GREY_CHANNEL |
Definition at line 144 of file WEBOTS_NXT_bridge.hpp.
Enumeration of the available strategies when following lines.
Enumerator | |
---|---|
FOLLOW_COLOR | |
TURN_RIGHT_UNTIL_COLOR_FOUND | |
TURN_LEFT_UNTIL_COLOR_FOUND |
Definition at line 170 of file WEBOTS_NXT_bridge.hpp.
enum guWhiteboard::CompetitionPhase : int8_t |
Phase of the competition.
Enumerator | |
---|---|
RoundRobin | |
PlayOff | |
NUM_COMPETITION_PHASES |
Definition at line 146 of file GCGameState.hpp.
enum guWhiteboard::CompetitionType : int8_t |
Type of the competition.
Enumerator | |
---|---|
NormalCompetition | |
MixedTeam | |
NUM_COMPETITION_TYPES |
Definition at line 141 of file GCGameState.hpp.
Enumeration of the defined general instructions.
Enumerator | |
---|---|
MOVE_MOTORS | |
ONE_MOTOR_SETTING | |
PLAY_SOUND | |
LIGHTUP_LED | |
DISTANCE | |
INTENSITY_LIGHT | |
ROTATION_ENCODER | |
CAMERA | |
TOUCH | |
NUMBER_WEBOTS_NXT_bridge_MESSAGES |
Definition at line 153 of file WEBOTS_NXT_bridge.hpp.
Enumerations of motor's in the NXT and E-Puck differential robots.
Enumerator | |
---|---|
LEFT_MOTOR_DIFFERENTIAL | |
RIGHT_MOTOR_DIFFERENTIAL | |
NXT_MOTOR3 |
Definition at line 83 of file WEBOTS_NXT_bridge.hpp.
command for ControlStatus
Enumerator | |
---|---|
FSMStatus | check status only |
FSMSuspend | suspend the corresponding state machines |
FSMResume | resume the corresponding state machines |
FSMRestart | restart the corresponding state machine |
Definition at line 89 of file wb_fsm_control_status.h.
enum guWhiteboard::GameContollerSignal : int8_t |
major game event signals (goals, kick-offs)
Enumerator | |
---|---|
NoGSsignal | |
GSOurGoalSignalPushed | |
GSTheirGoalSignalPushed | |
GSBlueKickOffSignalPushed | |
GSRedKickOffSignalPushed |
Definition at line 207 of file GCGameState.hpp.
enum guWhiteboard::GameControllerCommand : int8_t |
received command from the Game Controller
Enumerator | |
---|---|
InitialReceived | |
ReadyReceived | |
SetReceived | |
PlayingReceived | |
FinishedReceived |
Definition at line 203 of file GCGameState.hpp.
enum guWhiteboard::GameHalf : int8_t |
Soccer games comprise of two halves.
Enumerator | |
---|---|
SecondHalf | |
FirstHalf |
Definition at line 195 of file GCGameState.hpp.
enum guWhiteboard::GamePhase : int8_t |
Phase of the game.
Enumerator | |
---|---|
NormalPhase | |
PenaltyShoot | |
Overtime | |
Timeout |
Definition at line 150 of file GCGameState.hpp.
enum guWhiteboard::GameState : int8_t |
High level Game Controller states.
Enumerator | |
---|---|
Initial | |
Ready | |
Set | |
Playing | |
Finished | |
NUM_GAME_STATES |
Definition at line 154 of file GCGameState.hpp.
Enumeration of ID's for motions of the differential robot.
Enumerator | |
---|---|
YELLOW_LINE_STRAIGHT_STEP | |
MAGENTA_LINE_STRAIGHT_STEP | |
PLAIN_LINE_STRAIGHT_STEP | |
TURN_LEFT_STEP | |
TURN_RIGHT_STEP | |
COMPLETED |
Definition at line 1209 of file WEBOTS_NXT_bridge.hpp.
enum guWhiteboard::HomeAway : int8_t |
Used to nominate which team is home/away and to decouple game state from team specifics.
Enumerator | |
---|---|
Home | |
Away |
Definition at line 191 of file GCGameState.hpp.
Predefined colour values, feel free to add more, just implement them in changeLedColour.
Enumerator | |
---|---|
Off | turn off leds |
Red | turn leds red |
Green | turn leds green |
Blue | turn leds blue |
Yellow | turn leds yellow |
White | turn leds white |
NUMBER_OF_LEDS_COLOURS | number of LEDColours |
Definition at line 21 of file SENSORSLedsSensors.hpp.
Predefined groups of leds that can be changed together, when adding more make sure to implement them in LEDsGroupChange
Definition at line 33 of file SENSORSLedsSensors.hpp.
Enumeration of the Light Sensors in the NXT differential robot.
Enumerator | |
---|---|
LEFT_LIGHT_SENSOR | |
RIGHT_LIGHT_SENSOR |
Definition at line 120 of file WEBOTS_NXT_bridge.hpp.
Enumeration of the Sensor ports available in the NXT differential robot.
Enumerator | |
---|---|
NXT_PORT_1 | |
NXT_PORT_2 | |
NXT_PORT_3 | |
NXT_PORT_4 |
Definition at line 135 of file WEBOTS_NXT_bridge.hpp.
Enumerator | |
---|---|
OLD_LEFT_MOTOR_DIFFERENTIAL | |
OLD_RIGHT_MOTOR_DIFFERENTIAL | |
OLD_NXT_MOTOR3 |
Definition at line 202 of file WhiteboardConstants.h.
enum guWhiteboard::PenaltyTypes : int8_t |
Penalty types.
Definition at line 162 of file GCGameState.hpp.
Remote WB enum.
Allows the user specify a remote wb to talk about
Enumerator | |
---|---|
Machine1 | |
Machine2 | |
Machine3 | |
Machine4 | |
NUM_OF_MACHINES |
Definition at line 94 of file RemoteWhiteboard.h.
enum guWhiteboard::SetPlay : int8_t |
Set play codes.
Enumerator | |
---|---|
NoSetPlay | |
GoalFreeKick | |
PushingFreeKick | |
CornerKick | |
KickIn | |
NUM_SET_PLAY_TYPES |
Definition at line 158 of file GCGameState.hpp.
Enumeration of the Sonar Sensors in the NXT and E-Puck differential robots.
Enumerator | |
---|---|
LEFT_SONAR_SENSOR | |
RIGHT_SONAR_SENSOR |
Definition at line 113 of file WEBOTS_NXT_bridge.hpp.
Enumeration of the Sound parameter settings.
Enumerator | |
---|---|
SOUND_DURATION | |
SOUND_FREQUENCY |
Definition at line 99 of file WEBOTS_NXT_bridge.hpp.
enum guWhiteboard::TeamColors : int8_t |
Team Colours.
Enumerator | |
---|---|
BLUE | |
RED | |
YELLOW | |
BLACK | |
WHITE | |
GREEN | |
ORANGE | |
PURPLE | |
BROWN | |
GRAY | |
NUM_JERSEY_COLORS |
Definition at line 133 of file GCGameState.hpp.
Enumeration of the Touch Sensors in the NXT and E-Puck differential robots.
Enumerator | |
---|---|
LEFT_TOUCH_SENSOR | |
RIGHT_TOUCH_SENSOR | |
NXT_NUM_SENSORS_IN_BUMBER |
Definition at line 127 of file WEBOTS_NXT_bridge.hpp.
std::string guWhiteboard::getmsg | ( | guWhiteboard::wb_types | message_index, |
gu_simple_message * | msg = NULLPTR , |
||
gu_simple_whiteboard_descriptor * | wbd = NULLPTR |
||
) |
Generic C++ function that gets a message with a given message number to the whiteboard.
message_index | the offset or enum value of the type to get |
msg | the data container, if NULLPTR then the message is gotten from the whiteboard |
wbd | the whiteboard to get the message from (NULLPTR for the default whiteboard) - this parameter has no effect if msg is non-NULLPTR |
std::string guWhiteboard::getmsg | ( | std::string | message_type, |
gu_simple_message * | msg = NULLPTR , |
||
gu_simple_whiteboard_descriptor * | wbd = NULLPTR |
||
) |
A generic C++ function that gets a string from the whiteboard.
Both the message type and the message content are strings.
message_type | the string version of the type |
msg | the data container, if NULLPTR then the message is gotten from the whiteboard |
wbd | the whiteboard to get the message from (NULLPTR for the default whiteboard) - this parameter has no effect if msg is non-NULLPTR |
Definition at line 75 of file guwhiteboardgetter.cpp.
References getmsg(), and types_map.
Referenced by getmsg().
string guWhiteboard::getmsg | ( | wb_types | message_index, |
gu_simple_message * | msg, | ||
gu_simple_whiteboard_descriptor * | wbd | ||
) |
Definition at line 80 of file guwhiteboardgetter.cpp.
References generic_whiteboard_object< object_type >::get(), generic_whiteboard_object< object_type >::get_from(), kwb_BottomVisionLines_v, kwb_DifferentialRobotControl_v, kwb_DifferentialRobotStatus_v, kwb_FFTStatus_v, kwb_FilteredBallSighting_v, kwb_FilteredGoalSighting_v, kwb_FSM_Control_v, kwb_FSM_Names_v, kwb_FSM_Status_v, kwb_FSOsighting_v, kwb_GCGameState_v, kwb_HAL_HeadTarget_v, kwb_ManuallyPenalized_v, kwb_MOTION_Commands_v, kwb_MOTION_Status_v, kwb_NAO_State_v, kwb_PF_ControlStatus_Modes_v, kwb_PlayerNumber_v, kwb_Print_v, kwb_QSay_v, kwb_QSpeech_v, kwb_Say_v, kwb_SensorsBodySensors_v, kwb_SensorsFootSensors_v, kwb_SensorsHandSensors_v, kwb_SensorsHeadSensors_v, kwb_SENSORSLedsSensors_v, kwb_SENSORSLegJointSensors_v, kwb_SENSORSLegJointTemps_v, kwb_SENSORSSonarSensors_v, kwb_SENSORSTorsoJointSensors_v, kwb_SENSORSTorsoJointTemps_v, kwb_SoloTypeExample_v, kwb_Speech_v, kwb_SpeechOutput_v, kwb_TeleoperationConnection_v, kwb_TeleoperationControlStatus_v, kwb_TopParticles_v, kwb_TopVisionLines_v, kwb_UDPRN_v, kwb_UDPWBNumber_v, kwb_VisionBall_v, kwb_VisionControl_v, kwb_VisionFace_v, kwb_VisionGoals_v, kwb_VisionStatus_v, kwb_WalkData_v, kwb_wb_reserved_SubscribeToAllTypes_v, kwb_WEBOTS_NXT_bridge_v, kwb_WEBOTS_NXT_bumper_v, kwb_WEBOTS_NXT_camera_v, kwb_WEBOTS_NXT_colorLine_walk_v, kwb_WEBOTS_NXT_deadReakoning_walk_v, kwb_WEBOTS_NXT_encoders_v, kwb_WEBOTS_NXT_gridMotions_v, kwb_WEBOTS_NXT_vector_bridge_v, kwb_WEBOTS_NXT_walk_isRunning_v, and kwb_XEyesPos_v.
Referenced by whiteboard_getmsg(), and whiteboard_getmsg_from().
bool guWhiteboard::post | ( | std::string | message_type, |
std::string | message_content, | ||
gu_simple_whiteboard_descriptor * | wbd = NULLPTR |
||
) |
A generic C++ function that posts to the whiteboard.
Both the message type and the message content are strings.
message_type | the string version of the type |
message_content | the string data to pass to the types string constructor |
wbd | whiteboard descriptor (NULLPTR for the default whiteboard) |
Definition at line 79 of file guwhiteboardposter.cpp.
bool guWhiteboard::postmsg | ( | guWhiteboard::wb_types | message_index, |
std::string | message_content, | ||
gu_simple_whiteboard_descriptor * | wbd = NULLPTR |
||
) |
Generic C++ function that posts a message with a given message number to the whiteboard.
message_index | the offset or enum value of the type to post |
message_content | the string data to pass to the types string constructor |
wbd | whiteboard descriptor (NULLPTR for the default whiteboard) |
bool guWhiteboard::postmsg | ( | wb_types | message_index, |
std::string | message_content, | ||
gu_simple_whiteboard_descriptor * | wbd | ||
) |
Definition at line 85 of file guwhiteboardposter.cpp.
References generic_whiteboard_object< object_type >::get(), kwb_BottomVisionLines_v, kwb_DifferentialRobotControl_v, kwb_DifferentialRobotStatus_v, kwb_FFTStatus_v, kwb_FilteredBallSighting_v, kwb_FilteredGoalSighting_v, kwb_FSM_Control_v, kwb_FSM_Names_v, kwb_FSM_Status_v, kwb_FSOsighting_v, kwb_GCGameState_v, kwb_HAL_HeadTarget_v, kwb_ManuallyPenalized_v, kwb_MOTION_Commands_v, kwb_MOTION_Status_v, kwb_NAO_State_v, kwb_PF_ControlStatus_Modes_v, kwb_PlayerNumber_v, kwb_Print_v, kwb_QSay_v, kwb_QSpeech_v, kwb_Say_v, kwb_SensorsBodySensors_v, kwb_SensorsFootSensors_v, kwb_SensorsHandSensors_v, kwb_SensorsHeadSensors_v, kwb_SENSORSLedsSensors_v, kwb_SENSORSLegJointSensors_v, kwb_SENSORSLegJointTemps_v, kwb_SENSORSSonarSensors_v, kwb_SENSORSTorsoJointSensors_v, kwb_SENSORSTorsoJointTemps_v, kwb_SoloTypeExample_v, kwb_Speech_v, kwb_SpeechOutput_v, kwb_TeleoperationConnection_v, kwb_TeleoperationControlStatus_v, kwb_TopParticles_v, kwb_TopVisionLines_v, kwb_UDPRN_v, kwb_UDPWBNumber_v, kwb_VisionBall_v, kwb_VisionControl_v, kwb_VisionFace_v, kwb_VisionGoals_v, kwb_VisionStatus_v, kwb_WalkData_v, kwb_wb_reserved_SubscribeToAllTypes_v, kwb_WEBOTS_NXT_bridge_v, kwb_WEBOTS_NXT_bumper_v, kwb_WEBOTS_NXT_camera_v, kwb_WEBOTS_NXT_colorLine_walk_v, kwb_WEBOTS_NXT_deadReakoning_walk_v, kwb_WEBOTS_NXT_encoders_v, kwb_WEBOTS_NXT_gridMotions_v, kwb_WEBOTS_NXT_vector_bridge_v, kwb_WEBOTS_NXT_walk_isRunning_v, kwb_XEyesPos_v, and generic_whiteboard_object< object_type >::post().
Referenced by post(), whiteboard_postmsg(), and whiteboard_postmsg_to().
const char * guWhiteboard::kDifferentialDistanceValue = "gudifferential_distanceSensorValue" |
Differential Robot Whiteboard message reporting the value of a sonar sensor, the message type is appended with an active Id of touch sensor for NXT(1, 2, 3 or 4) content is the value of sensor, in cm.
Differential Robot Whiteboard message providing the value of a distance sensor.
Definition at line 107 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialLedOff = "gudifferential_ledOff" |
Differential Robot Whiteboard message to turn off a led.
Definition at line 138 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialLedOn = "gudifferential_ledOn" |
Differential Robot Whiteboard message to turn on a led.
Definition at line 137 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialLightValue = "gudifferential_lightSensorValue" |
Differential Robot Whiteboard message providing the value of a light sensor.
Definition at line 134 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialMotorPower = "gudifferential_motorPower" |
Differential Robot Whiteboard message to turn a motor on Content (Array): Motor(left = 0, right = 1), power %.
This is the new message-type for controlling a motor
content type is ALWAYS ARRAY the first value is the motor ID, 0=left, 1=right 2 third for MiPAL NXT wired robots, C=left adn B= right THIRD is A in nxt. the second value is POWER The power shall be beteen [-100,100], abs(power) is a percentage Negative values means running backwards 0 is a stop positive forwards
Definition at line 62 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialPlaySound = "gudifferential_playSound" |
Differential Robot Whiteboard message to start playing a sound Content (Int): Duration in milisecond.
Definition at line 67 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialRotationValue = "gudifferential_rotationSensorValue" |
Differential Robot Whiteboard message reporting the value of a rotation on a motor, the message type is appended with an active Id of motor 0=left, 1=right 2 third for MiPAL NXT wired robots, C=left adn B= right content is the value of sensor, in laps.
Differential Robot Whiteboard message providing the value of a rotation sensor.
Definition at line 130 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialStartDistance = "gudifferential_startDistanceSensor" |
Differential Robot message to start a sonar sensor reporting Content (Int): Id of touch sensor for NXT(1, 2, 3 or 4)
Differential Robot Whiteboard message to start a distance sensor Content (Int): Id of distance sensor for NXT Sonar sensors(1, 2, 3 or 4)
Definition at line 95 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialStartLight = "gudifferential_startLightSensor" |
Differential Robot Whiteboard message to start a light sensor Content (Int): Id of light sensor for NXT sensors(1, 2, 3 or 4)
Definition at line 132 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialStartRotationSensor = "gudifferential_startRotationSensor" |
Differential Robot message to start a rotation sensor reporting Content (Int): Id of relevant motor Id of motor 0=left, 1=right 2 third for MiPAL NXT wired robots, C=left adn B= right.
Differential Robot Whiteboard message to start a rotation sensor Content (Int): Motor(left = 0, right = 1)
Definition at line 115 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialStartTouch = "gudifferential_startTouchSensor" |
Differential Robot message to start a touch sensor reporting Content (Int): Id of touch sensor for NXT(1, 2, 3 or 4)
Differential Robot Whiteboard message to start a touch sensor Content (Int): Id of touch sensor for NXT(1, 2, 3 or 4)
Definition at line 82 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialStopDistance = "gudifferential_stopDistanceSensor" |
Differential Robot message to STOP a sonar sensor reporting Content (Int): Id of touch sensor for NXT(1, 2, 3 or 4)
Differential Robot Whiteboard message to stop a distance sensor Content (Int): Id of distance sensor for NXT Sonar sensors(1, 2, 3 or 4)
Definition at line 100 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialStopLight = "gudifferential_stopLightSensor" |
Differential Robot Whiteboard message to stop a light sensor Content (Int): Id of light sensor for NXT sensors(1, 2, 3 or 4)
Definition at line 133 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialStopRotationSensor = "gudifferential_stopRotationSensor" |
Differential Robot message to STOP a rotation sensor reporting Content (Int): Id of relevant motor Id of motor 0=left, 1=right 2 third for MiPAL NXT wired robots, C=left adn B= right.
Differential Robot Whiteboard message to stop a rotation sensor Content (Int): Motor(left = 0, right = 1)
Definition at line 122 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialStopSound = "gudifferential_stopSound" |
Differential Robot Whiteboard message to stop playing a sound Content (Int): Duration in milisecond.
Differential Robot Whiteboard message to stop playing a sound Content(Any) N/A.
Definition at line 72 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialStopTouch = "gudifferential_stopTouchSensor" |
Differential Robot message to stop a touch sensor reporting Content (Int): Id of touch sensor for NXT(1, 2, 3 or 4)
Differential Robot Whiteboard message to stop a touch sensor Content (Int): Id of touch sensor for NXT(1, 2, 3 or 4)
Definition at line 78 of file WhiteboardConstants.cc.
const char * guWhiteboard::kDifferentialTouchValue = "gudifferential_touchSensorValue" |
Differential Robot Whiteboard message reporting the value of a touch sensor, the message type is appended with an active Id of touch sensor for NXT(1, 2, 3 or 4) content is the value of sensor, 0 if released, 1 if pressed.
Differential Robot Whiteboard message providing the value of a touch sensor.
Definition at line 89 of file WhiteboardConstants.cc.
const char * guWhiteboard::kHelloWBMsg = "HELLO_MESSAGE" |
Hello World message name.
Definition at line 15 of file WhiteboardConstants.cc.
const char * guWhiteboard::kOff = "Off" |
Whiteboard message (string) for turn off modules.
Definition at line 44 of file WhiteboardConstants.cc.
const char * guWhiteboard::kOn = "On" |
Whiteboard message (string) for turn on modules.
Definition at line 43 of file WhiteboardConstants.cc.
|
extern |
Soap callback key for message subscriber method.
const char * guWhiteboard::kQSay = "QSay" |
Queuing speech message (string)
Definition at line 18 of file WhiteboardConstants.cc.
const char * guWhiteboard::kQSpeech = "QSpeech" |
Queuing debug speech message (string) – only use for debugging, as this will only work if "SpeechOutput" "On" was sent previously.
Definition at line 20 of file WhiteboardConstants.cc.
const char * guWhiteboard::kRobocup_kickOffTeam = "Robocup_kickOffTeam" |
This variable is 1 if we it is our kickoff is 0 if we are NOT having the kickoff. Regardless of what team we are playing kRobocup_ourTeam==kRobocup_kickOffTeam tests if we are kicking off
Definition at line 41 of file WhiteboardConstants.cc.
const char * guWhiteboard::kRobocup_ourTeam = "Robocup_ourTeam" |
This variable is 1 if we are playng as RED and is 0 if we are playng as BLUE
Definition at line 32 of file WhiteboardConstants.cc.
const char * guWhiteboard::kSay = "Say" |
Speech message (string)
Definition at line 17 of file WhiteboardConstants.cc.
const char * guWhiteboard::kSpeechOutput = "SpeechOutput" |
Whiteboard message for conditional speech output.
Content (string) should be "On" to turn on speech or "Off" to turn off speech (will not affect the "Say" command).
Definition at line 21 of file WhiteboardConstants.cc.
const char * guWhiteboard::kSpeechWBMsg = "Speech" |
Debug speech message (string) – only use for debugging, as this will only work if "SpeechOutput" "On" was sent previously.
Definition at line 19 of file WhiteboardConstants.cc.
const char * guWhiteboard::kUpdateAllProofs = "updateProofs" |
Whiteboard message (string) for updating all proofs.
Definition at line 24 of file WhiteboardConstants.cc.
const char * guWhiteboard::kUpdateAllProofsForTheory = "updateProofsForTheory" |
Whiteboard message (string) for updating proofs for a given theory.
Definition at line 26 of file WhiteboardConstants.cc.
const char * guWhiteboard::kUpdateProof = "updateProofsForOutput" |
Whiteboard message (string) for updating a proof for a given output.
Definition at line 25 of file WhiteboardConstants.cc.
|
extern |
Global map from names to message types.
global types map
Definition at line 73 of file guwhiteboardposter.cpp.
Referenced by getmsg(), post(), whiteboard_get(), whiteboard_get_from(), whiteboard_post(), whiteboard_post_to(), and whiteboard_type_for_message_named().
typedef::wb_types guWhiteboard::wb_types |
Definition at line 29 of file guwhiteboardtypelist_generated.h.
Referenced by wb_reserved_SubscribeToAllTypes_WBFunctor< wb_reserved_SubscribeToAllTypes_WBFunctor_T >::call(), Print_WBFunctor< Print_WBFunctor_T >::call(), Say_WBFunctor< Say_WBFunctor_T >::call(), Speech_WBFunctor< Speech_WBFunctor_T >::call(), QSay_WBFunctor< QSay_WBFunctor_T >::call(), QSpeech_WBFunctor< QSpeech_WBFunctor_T >::call(), SpeechOutput_WBFunctor< SpeechOutput_WBFunctor_T >::call(), SoloTypeExample_WBFunctor< SoloTypeExample_WBFunctor_T >::call(), PlayerNumber_WBFunctor< PlayerNumber_WBFunctor_T >::call(), ManuallyPenalized_WBFunctor< ManuallyPenalized_WBFunctor_T >::call(), PF_ControlStatus_Modes_WBFunctor< PF_ControlStatus_Modes_WBFunctor_T >::call(), TeleoperationConnection_WBFunctor< TeleoperationConnection_WBFunctor_T >::call(), UDPWBNumber_WBFunctor< UDPWBNumber_WBFunctor_T >::call(), VisionFace_WBFunctor< VisionFace_WBFunctor_T >::call(), Draw_WBFunctor< Draw_WBFunctor_T >::call(), REMOVED3_WBFunctor< REMOVED3_WBFunctor_T >::call(), REMOVED4_WBFunctor< REMOVED4_WBFunctor_T >::call(), CBall_WBFunctor< CBall_WBFunctor_T >::call(), GreenEWon_WBFunctor< GreenEWon_WBFunctor_T >::call(), WarnEW_WBFunctor< WarnEW_WBFunctor_T >::call(), TimeGTthirty_WBFunctor< TimeGTthirty_WBFunctor_T >::call(), AmberEWon_WBFunctor< AmberEWon_WBFunctor_T >::call(), TurnRedEW_WBFunctor< TurnRedEW_WBFunctor_T >::call(), TimeGTfive_WBFunctor< TimeGTfive_WBFunctor_T >::call(), RedEWon_WBFunctor< RedEWon_WBFunctor_T >::call(), GreenNSon_WBFunctor< GreenNSon_WBFunctor_T >::call(), WarnNS_WBFunctor< WarnNS_WBFunctor_T >::call(), AmberNSon_WBFunctor< AmberNSon_WBFunctor_T >::call(), TurnRedNS_WBFunctor< TurnRedNS_WBFunctor_T >::call(), RedNSon_WBFunctor< RedNSon_WBFunctor_T >::call(), TimerReset_WBFunctor< TimerReset_WBFunctor_T >::call(), SLOT_UNUSED_WBFunctor< SLOT_UNUSED_WBFunctor_T >::call(), CarSensorPressed_WBFunctor< CarSensorPressed_WBFunctor_T >::call(), Ball_Found_WBFunctor< Ball_Found_WBFunctor_T >::call(), Ball_Calibration_File_WBFunctor< Ball_Calibration_File_WBFunctor_T >::call(), Ball_Calibration_Num_WBFunctor< Ball_Calibration_Num_WBFunctor_T >::call(), Ball_Color_Num_WBFunctor< Ball_Color_Num_WBFunctor_T >::call(), WhistleBlown_WBFunctor< WhistleBlown_WBFunctor_T >::call(), VolumeControl_WBFunctor< VolumeControl_WBFunctor_T >::call(), ParticleOutputMap_WBFunctor< ParticleOutputMap_WBFunctor_T >::call(), ParticleOutputMapControl_WBFunctor< ParticleOutputMapControl_WBFunctor_T >::call(), FFTControl_WBFunctor< FFTControl_WBFunctor_T >::call(), WavLoad_WBFunctor< WavLoad_WBFunctor_T >::call(), WavPlay_WBFunctor< WavPlay_WBFunctor_T >::call(), ReproduceWavNotSilent_WBFunctor< ReproduceWavNotSilent_WBFunctor_T >::call(), buttonPushed_WBFunctor< buttonPushed_WBFunctor_T >::call(), doorOpen_WBFunctor< doorOpen_WBFunctor_T >::call(), timeLeft_WBFunctor< timeLeft_WBFunctor_T >::call(), motor_WBFunctor< motor_WBFunctor_T >::call(), sound_WBFunctor< sound_WBFunctor_T >::call(), light_WBFunctor< light_WBFunctor_T >::call(), Arduino2Pin_WBFunctor< Arduino2Pin_WBFunctor_T >::call(), Arduino2PinValue_WBFunctor< Arduino2PinValue_WBFunctor_T >::call(), Arduino3Pin_WBFunctor< Arduino3Pin_WBFunctor_T >::call(), Arduino3PinValue_WBFunctor< Arduino3PinValue_WBFunctor_T >::call(), Arduino4Pin_WBFunctor< Arduino4Pin_WBFunctor_T >::call(), Arduino4PinValue_WBFunctor< Arduino4PinValue_WBFunctor_T >::call(), Arduino5Pin_WBFunctor< Arduino5Pin_WBFunctor_T >::call(), Arduino5PinValue_WBFunctor< Arduino5PinValue_WBFunctor_T >::call(), Arduino6Pin_WBFunctor< Arduino6Pin_WBFunctor_T >::call(), Arduino6PinValue_WBFunctor< Arduino6PinValue_WBFunctor_T >::call(), Arduino7Pin_WBFunctor< Arduino7Pin_WBFunctor_T >::call(), Arduino7PinValue_WBFunctor< Arduino7PinValue_WBFunctor_T >::call(), Arduino8Pin_WBFunctor< Arduino8Pin_WBFunctor_T >::call(), Arduino8PinValue_WBFunctor< Arduino8PinValue_WBFunctor_T >::call(), Arduino9Pin_WBFunctor< Arduino9Pin_WBFunctor_T >::call(), Arduino9PinValue_WBFunctor< Arduino9PinValue_WBFunctor_T >::call(), LHandGripper_WBFunctor< LHandGripper_WBFunctor_T >::call(), and RHandGripper_WBFunctor< RHandGripper_WBFunctor_T >::call().