gusimplewhiteboard
wb_nao_sonar_protected_walk_command.h
Go to the documentation of this file.
1/*
2 * file wb_nao_sonar_protected_walk_command.h
3 *
4 * This file was generated by classgenerator from nao_sonar_protected_walk_command.gen.
5 * DO NOT CHANGE MANUALLY!
6 *
7 * Copyright © 2021 Vlad Estivill-Castro. All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 *
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 *
16 * 2. Redistributions in binary form must reproduce the above
17 * copyright notice, this list of conditions and the following
18 * disclaimer in the documentation and/or other materials
19 * provided with the distribution.
20 *
21 * 3. All advertising materials mentioning features or use of this
22 * software must display the following acknowledgement:
23 *
24 * This product includes software developed by Vlad Estivill-Castro.
25 *
26 * 4. Neither the name of the author nor the names of contributors
27 * may be used to endorse or promote products derived from this
28 * software without specific prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
34 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
35 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
36 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
37 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
38 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
39 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
40 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 *
42 * -----------------------------------------------------------------------
43 * This program is free software; you can redistribute it and/or
44 * modify it under the above terms or under the terms of the GNU
45 * General Public License as published by the Free Software Foundation;
46 * either version 2 of the License, or (at your option) any later version.
47 *
48 * This program is distributed in the hope that it will be useful,
49 * but WITHOUT ANY WARRANTY; without even the implied warranty of
50 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 * GNU General Public License for more details.
52 *
53 * You should have received a copy of the GNU General Public License
54 * along with this program; if not, see http://www.gnu.org/licenses/
55 * or write to the Free Software Foundation, Inc., 51 Franklin Street,
56 * Fifth Floor, Boston, MA 02110-1301, USA.
57 *
58 */
59
60#ifndef wb_nao_sonar_protected_walk_command_h
61#define wb_nao_sonar_protected_walk_command_h
62
63#pragma clang diagnostic push
64#pragma clang diagnostic ignored "-Wreserved-id-macro"
65
66#ifdef __linux
67# ifndef _POSIX_SOURCE
68# define _POSIX_SOURCE 200112L
69# endif
70#endif
71#ifndef _XOPEN_SOURCE
72# define _XOPEN_SOURCE 700
73#endif
74#ifdef __APPLE__
75# ifndef _DARWIN_C_SOURCE
76# define _DARWIN_C_SOURCE 200112L
77# endif
78# ifndef __DARWIN_C_LEVEL
79# define __DARWIN_C_LEVEL 200112L
80# endif
81#endif
82
83#pragma clang diagnostic pop
84
85#include <gu_util.h>
86#include <stdint.h>
87
88#define NAO_SONAR_PROTECTED_WALK_COMMAND_GENERATED
89#define NAO_SONAR_PROTECTED_WALK_COMMAND_C_STRUCT wb_nao_sonar_protected_walk_command
90#define NAO_SONAR_PROTECTED_WALK_COMMAND_NUMBER_OF_VARIABLES 15
91
92#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
93#define NAO_SONAR_PROTECTED_WALK_COMMAND_DESC_BUFFER_SIZE 254
94#define NAO_SONAR_PROTECTED_WALK_COMMAND_TO_STRING_BUFFER_SIZE 96
95#endif
96
97#ifdef __cplusplus
98extern "C" {
99#endif
100
107{
108
113
117 int16_t forward;
118
122 int16_t left;
123
127 int8_t turn;
128
132 int8_t priority;
133
138
142 uint8_t speed;
143
147 bool isFast;
148
153
158
163
168
172 uint8_t power;
173
178
182 uint8_t bend;
183
184};
185
186#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
187
191const char* wb_nao_sonar_protected_walk_command_description(const struct wb_nao_sonar_protected_walk_command* self, char* descString, size_t bufferSize);
192
196const char* wb_nao_sonar_protected_walk_command_to_string(const struct wb_nao_sonar_protected_walk_command* self, char* toString, size_t bufferSize);
197
202
203#endif
204
205/*#ifdef WHITEBOARD_SERIALISATION*/
206
211
216
217/*#endif /// WHITEBOARD_SERIALISATION*/
218
219#ifdef __cplusplus
220}
221#endif
222
223#endif
bool rightArmLimp
lower stiffness in the arms when walking, allows the arm to move a little more.
bool leftArmLimp
lower stiffness in the arms when walking, allows the arm to move a little more.
int8_t priority
subsumption priority 1: unprotected walk, command unmodified.
bool useShuffle
limits the step height so the robot 'shuffles' instead of taking larger steps.
int16_t left
[-200 - 200] step-size(mm) per second, limited to +/- 200mm/step
uint8_t power
[0 - 100] stiffness, auto set to minimum needed values.
bool exactStepsRequested
No ratcheting, no speed 'buildup', just full step sizes.
uint8_t odometryResetCounter
Odometry will reset any time this is changed or incremented.
int16_t forward
[-300 - 300] step-size(mm) per second, limited to +/- 300mm/step
uint8_t bend
[0 - 1] controls what the robot does when stopped, 0 == STAND and lower stiffness,...
int8_t turn
[-85 - 85] step-size(mm) per second, limited to +/- 85deg/step
uint8_t speed
[0 - 100] modifier for forward etc.
size_t wb_nao_sonar_protected_walk_command_from_network_serialised(const char *src, struct wb_nao_sonar_protected_walk_command *dst)
Network stream deserialisation.
struct wb_nao_sonar_protected_walk_command * wb_nao_sonar_protected_walk_command_from_string(struct wb_nao_sonar_protected_walk_command *self, const char *str)
Convert from a string.
const char * wb_nao_sonar_protected_walk_command_to_string(const struct wb_nao_sonar_protected_walk_command *self, char *toString, size_t bufferSize)
Convert to a string.
size_t wb_nao_sonar_protected_walk_command_to_network_serialised(const struct wb_nao_sonar_protected_walk_command *self, char *dst)
WHITEBOARD_POSTER_STRING_CONVERSION.
const char * wb_nao_sonar_protected_walk_command_description(const struct wb_nao_sonar_protected_walk_command *self, char *descString, size_t bufferSize)
Convert to a description string.