gusimplewhiteboard
guwhiteboardposter.h
Go to the documentation of this file.
1
9#ifndef WB_GUWHITEBOARDPOSTER_H
10#define WB_GUWHITEBOARDPOSTER_H
11
15#ifdef __cplusplus
16#include <string>
17#include <map>
18#include <stdbool.h>
19
20/*
21 * Include your classes below if they have description methods and
22 * string constructors!
23 */
24#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
25#include "GCGameState.hpp"
28#include "MOTION_Commands.hpp"
29#include "MOTION_Status.hpp"
30#include "HAL_HeadTarget.hpp"
39#include "FSMControlStatus.hpp"
40#include "FSMControlStatus.hpp"
41#include "FSMNames.hpp"
43#include "NAO_State.hpp"
44#include "GCGameState.hpp"
47#include "FFTStatus.hpp"
49#include "TopParticles.hpp"
51#include "WEBOTS_NXT_bridge.hpp"
53#include "WEBOTS_NXT_camera.hpp"
58#include "VisionBall.hpp"
59#include "VisionGoals.hpp"
60#include "WalkData.hpp"
62#include "WEBOTS_NXT_bumper.hpp"
64#include "VisionLines.hpp"
65#include "VisionLines.hpp"
68#include "Point2D.hpp"
69#include "FSMState.hpp"
72#include "NXT_Interface.hpp"
73#include "NXT_Interface.hpp"
74#include "APM_Interface.hpp"
75#include "APM_Interface.hpp"
77#include "Input3D.hpp"
79#include "IOPins.hpp"
81#include "NXT_Sound_Control.hpp"
83#include "Clocks.hpp"
84#include "Channels.hpp"
85#include "SwitchSubsumption.hpp"
86#include "TotoDoingMotion.hpp"
87#include "Count.hpp"
89#include "HalArmTarget.hpp"
90#include "HalArmTarget.hpp"
91#include "HalArmTarget.hpp"
92#include "HalArmTarget.hpp"
93#include "HalArmTarget.hpp"
94#include "HalArmTarget.hpp"
96#include "VisionRobots.hpp"
98#include "NaoWalkCommand.hpp"
99#include "NaoWalkStatus.hpp"
100#include "HalLegTarget.hpp"
101#include "HalLegTarget.hpp"
102#include "HalLegTarget.hpp"
103#include "HalLegTarget.hpp"
104#include "HalLegTarget.hpp"
105#include "HalLegTarget.hpp"
112#include "MicrowaveStatus.hpp"
113#include "Buttons.hpp"
115#include "NaoJointListFloat.hpp"
116#include "DataLogger.hpp"
118#include "Location.hpp"
119#include "Location.hpp"
120#include "Location.hpp"
121#include "Location.hpp"
126#include "FrequencyLimits.hpp"
127#include "FrequencyLimits.hpp"
128#include "HeadJointSensors.hpp"
131#include "TemperatureSensors.hpp"
132#include "Overheating.hpp"
133#include "BallPosition.hpp"
136#include "MyPosition.hpp"
139
140#endif // WHITEBOARD_POSTER_STRING_CONVERSION
141
142extern "C"
143{
144#else
145#include <stdbool.h>
146#endif // __cplusplus
147
148#include "gusimplewhiteboard.h"
150
155bool whiteboard_post(const char *message_type, const char *message_content);
156
161bool whiteboard_post_to(gu_simple_whiteboard_descriptor *wbd, const char *message_type, const char *message_content);
162
167bool whiteboard_postmsg(int message_index, const char *message_content);
168
173bool whiteboard_postmsg_to(gu_simple_whiteboard_descriptor *wbd, int message_index, const char *message_content);
174
179#ifndef __cplusplus
180int whiteboard_type_for_message_named(const char *message_type);
181#else
183}
184
185namespace guWhiteboard {
186
195 bool post(std::string message_type, std::string message_content, gu_simple_whiteboard_descriptor *wbd = NULLPTR);
196
205 bool postmsg(guWhiteboard::wb_types message_index, std::string message_content, gu_simple_whiteboard_descriptor *wbd = NULLPTR);
206
210 struct whiteboard_types_map: public std::map<std::string, guWhiteboard::wb_types>
211 {
213 };
214
218 extern struct whiteboard_types_map types_map;
219} // guWhiteboard
220
221#endif // __cplusplus
222
223#endif //WB_GUWHITEBOARDPOSTER_H
bool whiteboard_post(const char *message_type, const char *message_content)
/file guwhiteboardposter.h
bool whiteboard_postmsg_to(gu_simple_whiteboard_descriptor *wbd, int message_index, const char *message_content)
Generic C function that posts a message with a given message number to a given whiteboard.
bool whiteboard_postmsg(int message_index, const char *message_content)
Generic C function that posts a message with a given message number to the whiteboard.
bool whiteboard_post_to(gu_simple_whiteboard_descriptor *wbd, const char *message_type, const char *message_content)
A generic C function that posts to a given whiteboard.
guWhiteboard::wb_types whiteboard_type_for_message_named(const char *message_type)
Generic C function that returns the type for a given message name.
/file APM_Interface.h
typedef::wb_types wb_types
bool post(string message_type, string message_content, gu_simple_whiteboard_descriptor *wbd)
A generic C++ function that posts to the whiteboard.
bool postmsg(wb_types message_index, std::string message_content, gu_simple_whiteboard_descriptor *wbd)
struct whiteboard_types_map types_map
Global map from names to message types.
the underlying whiteboard object
Map structure from strings to message types.