Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
ros-msgs-arduino-lib
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CdF
CdF 2020-2021
modules
libraries
communication
messages
ros-msgs-arduino-lib
Commits
d767c573
Commit
d767c573
authored
4 years ago
by
Compiler bot
Browse files
Options
Downloads
Patches
Plain Diff
autogen lib 2021-05-29T15:51:16+02:00
parent
f51c4b75
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mccd_srvs/SetMode.h
+97
-0
97 additions, 0 deletions
mccd_srvs/SetMode.h
nav_msgs/GetPlan.h
+1
-1
1 addition, 1 deletion
nav_msgs/GetPlan.h
with
98 additions
and
1 deletion
mccd_srvs/SetMode.h
0 → 100644
+
97
−
0
View file @
d767c573
#ifndef _ROS_SERVICE_SetMode_h
#define _ROS_SERVICE_SetMode_h
#include
<stdint.h>
#include
<string.h>
#include
<stdlib.h>
#include
"ros/msg.h"
namespace
mccd_srvs
{
static
const
char
SETMODE
[]
=
"mccd_srvs/SetMode"
;
class
SetModeRequest
:
public
ros
::
Msg
{
public:
typedef
uint8_t
_mode_type
;
_mode_type
mode
;
enum
{
MODE_CALIBRATION
=
1
};
enum
{
MODE_NORMAL
=
2
};
SetModeRequest
()
:
mode
(
0
)
{
}
virtual
int
serialize
(
unsigned
char
*
outbuffer
)
const
override
{
int
offset
=
0
;
*
(
outbuffer
+
offset
+
0
)
=
(
this
->
mode
>>
(
8
*
0
))
&
0xFF
;
offset
+=
sizeof
(
this
->
mode
);
return
offset
;
}
virtual
int
deserialize
(
unsigned
char
*
inbuffer
)
override
{
int
offset
=
0
;
this
->
mode
=
((
uint8_t
)
(
*
(
inbuffer
+
offset
)));
offset
+=
sizeof
(
this
->
mode
);
return
offset
;
}
virtual
const
char
*
getType
()
override
{
return
SETMODE
;
};
virtual
const
char
*
getMD5
()
override
{
return
"be2d9a6d964a2273d3e4ae0e5b413bb3"
;
};
};
class
SetModeResponse
:
public
ros
::
Msg
{
public:
typedef
bool
_success_type
;
_success_type
success
;
SetModeResponse
()
:
success
(
0
)
{
}
virtual
int
serialize
(
unsigned
char
*
outbuffer
)
const
override
{
int
offset
=
0
;
union
{
bool
real
;
uint8_t
base
;
}
u_success
;
u_success
.
real
=
this
->
success
;
*
(
outbuffer
+
offset
+
0
)
=
(
u_success
.
base
>>
(
8
*
0
))
&
0xFF
;
offset
+=
sizeof
(
this
->
success
);
return
offset
;
}
virtual
int
deserialize
(
unsigned
char
*
inbuffer
)
override
{
int
offset
=
0
;
union
{
bool
real
;
uint8_t
base
;
}
u_success
;
u_success
.
base
=
0
;
u_success
.
base
|=
((
uint8_t
)
(
*
(
inbuffer
+
offset
+
0
)))
<<
(
8
*
0
);
this
->
success
=
u_success
.
real
;
offset
+=
sizeof
(
this
->
success
);
return
offset
;
}
virtual
const
char
*
getType
()
override
{
return
SETMODE
;
};
virtual
const
char
*
getMD5
()
override
{
return
"358e233cde0c8a8bcfea4ce193f8fc15"
;
};
};
class
SetMode
{
public:
typedef
SetModeRequest
Request
;
typedef
SetModeResponse
Response
;
};
}
#endif
This diff is collapsed.
Click to expand it.
nav_msgs/GetPlan.h
+
1
−
1
View file @
d767c573
...
...
@@ -4,8 +4,8 @@
#include
<string.h>
#include
<stdlib.h>
#include
"ros/msg.h"
#include
"geometry_msgs/PoseStamped.h"
#include
"nav_msgs/Path.h"
#include
"geometry_msgs/PoseStamped.h"
namespace
nav_msgs
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment