Main Page
Namespaces
Classes
Files
File List
File Members
client
ros_lib
std_msgs
UInt8.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
18
#ifndef _ROS_std_msgs_UInt8_h
19
#define _ROS_std_msgs_UInt8_h
20
21
#include <stdint.h>
22
#include <string.h>
23
#include <stdlib.h>
24
#include "
ros/msg.h
"
25
26
namespace
std_msgs
27
{
28
29
class
UInt8
:
public
ros::Msg
30
{
31
public
:
32
uint8_t
data
;
33
34
UInt8
():
35
data(0)
36
{
37
}
38
39
virtual
int
serialize
(
unsigned
char
*outbuffer)
const
40
{
41
int
offset = 0;
42
*(outbuffer + offset + 0) = (this->data >> (8 * 0)) & 0xFF;
43
offset +=
sizeof
(this->
data
);
44
return
offset;
45
}
46
47
virtual
int
deserialize
(
unsigned
char
*inbuffer)
48
{
49
int
offset = 0;
50
this->data = ((uint8_t) (*(inbuffer + offset)));
51
offset +=
sizeof
(this->
data
);
52
return
offset;
53
}
54
55
const
char
*
getType
(){
return
"std_msgs/UInt8"
; };
56
const
char
*
getMD5
(){
return
"7c8164229e7d2c17eb95e9231617fdee"
; };
57
58
};
59
60
}
61
#endif
std_msgs::UInt8::data
uint8_t data
Definition:
UInt8.h:32
std_msgs::UInt8
Definition:
UInt8.h:29
std_msgs::UInt8::serialize
virtual int serialize(unsigned char *outbuffer) const
Definition:
UInt8.h:39
std_msgs::UInt8::UInt8
UInt8()
Definition:
UInt8.h:34
std_msgs::UInt8::getType
const char * getType()
Definition:
UInt8.h:55
msg.h
std_msgs
std_msgs::UInt8::deserialize
virtual int deserialize(unsigned char *inbuffer)
Definition:
UInt8.h:47
ros::Msg
Definition:
msg.h:26
std_msgs::UInt8::getMD5
const char * getMD5()
Definition:
UInt8.h:56
cob_hand_bridge
Author(s): Mathias Lüdtke
autogenerated on Tue Oct 20 2020 03:35:57