Skip to content

Commit 824bff1

Browse files
committed
updated roslib
1 parent f4355f4 commit 824bff1

File tree

77 files changed

+7425
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+7425
-7
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#ifndef _ROS_actionlib_tutorials_AveragingAction_h
2+
#define _ROS_actionlib_tutorials_AveragingAction_h
3+
4+
#include <stdint.h>
5+
#include <string.h>
6+
#include <stdlib.h>
7+
#include "ros/msg.h"
8+
#include "actionlib_tutorials/AveragingActionGoal.h"
9+
#include "actionlib_tutorials/AveragingActionResult.h"
10+
#include "actionlib_tutorials/AveragingActionFeedback.h"
11+
12+
namespace actionlib_tutorials
13+
{
14+
15+
class AveragingAction : public ros::Msg
16+
{
17+
public:
18+
typedef actionlib_tutorials::AveragingActionGoal _action_goal_type;
19+
_action_goal_type action_goal;
20+
typedef actionlib_tutorials::AveragingActionResult _action_result_type;
21+
_action_result_type action_result;
22+
typedef actionlib_tutorials::AveragingActionFeedback _action_feedback_type;
23+
_action_feedback_type action_feedback;
24+
25+
AveragingAction():
26+
action_goal(),
27+
action_result(),
28+
action_feedback()
29+
{
30+
}
31+
32+
virtual int serialize(unsigned char *outbuffer) const override
33+
{
34+
int offset = 0;
35+
offset += this->action_goal.serialize(outbuffer + offset);
36+
offset += this->action_result.serialize(outbuffer + offset);
37+
offset += this->action_feedback.serialize(outbuffer + offset);
38+
return offset;
39+
}
40+
41+
virtual int deserialize(unsigned char *inbuffer) override
42+
{
43+
int offset = 0;
44+
offset += this->action_goal.deserialize(inbuffer + offset);
45+
offset += this->action_result.deserialize(inbuffer + offset);
46+
offset += this->action_feedback.deserialize(inbuffer + offset);
47+
return offset;
48+
}
49+
50+
virtual const char * getType() override { return "actionlib_tutorials/AveragingAction"; };
51+
virtual const char * getMD5() override { return "628678f2b4fa6a5951746a4a2d39e716"; };
52+
53+
};
54+
55+
}
56+
#endif
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#ifndef _ROS_actionlib_tutorials_AveragingActionFeedback_h
2+
#define _ROS_actionlib_tutorials_AveragingActionFeedback_h
3+
4+
#include <stdint.h>
5+
#include <string.h>
6+
#include <stdlib.h>
7+
#include "ros/msg.h"
8+
#include "std_msgs/Header.h"
9+
#include "actionlib_msgs/GoalStatus.h"
10+
#include "actionlib_tutorials/AveragingFeedback.h"
11+
12+
namespace actionlib_tutorials
13+
{
14+
15+
class AveragingActionFeedback : public ros::Msg
16+
{
17+
public:
18+
typedef std_msgs::Header _header_type;
19+
_header_type header;
20+
typedef actionlib_msgs::GoalStatus _status_type;
21+
_status_type status;
22+
typedef actionlib_tutorials::AveragingFeedback _feedback_type;
23+
_feedback_type feedback;
24+
25+
AveragingActionFeedback():
26+
header(),
27+
status(),
28+
feedback()
29+
{
30+
}
31+
32+
virtual int serialize(unsigned char *outbuffer) const override
33+
{
34+
int offset = 0;
35+
offset += this->header.serialize(outbuffer + offset);
36+
offset += this->status.serialize(outbuffer + offset);
37+
offset += this->feedback.serialize(outbuffer + offset);
38+
return offset;
39+
}
40+
41+
virtual int deserialize(unsigned char *inbuffer) override
42+
{
43+
int offset = 0;
44+
offset += this->header.deserialize(inbuffer + offset);
45+
offset += this->status.deserialize(inbuffer + offset);
46+
offset += this->feedback.deserialize(inbuffer + offset);
47+
return offset;
48+
}
49+
50+
virtual const char * getType() override { return "actionlib_tutorials/AveragingActionFeedback"; };
51+
virtual const char * getMD5() override { return "78a4a09241b1791069223ae7ebd5b16b"; };
52+
53+
};
54+
55+
}
56+
#endif
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#ifndef _ROS_actionlib_tutorials_AveragingActionGoal_h
2+
#define _ROS_actionlib_tutorials_AveragingActionGoal_h
3+
4+
#include <stdint.h>
5+
#include <string.h>
6+
#include <stdlib.h>
7+
#include "ros/msg.h"
8+
#include "std_msgs/Header.h"
9+
#include "actionlib_msgs/GoalID.h"
10+
#include "actionlib_tutorials/AveragingGoal.h"
11+
12+
namespace actionlib_tutorials
13+
{
14+
15+
class AveragingActionGoal : public ros::Msg
16+
{
17+
public:
18+
typedef std_msgs::Header _header_type;
19+
_header_type header;
20+
typedef actionlib_msgs::GoalID _goal_id_type;
21+
_goal_id_type goal_id;
22+
typedef actionlib_tutorials::AveragingGoal _goal_type;
23+
_goal_type goal;
24+
25+
AveragingActionGoal():
26+
header(),
27+
goal_id(),
28+
goal()
29+
{
30+
}
31+
32+
virtual int serialize(unsigned char *outbuffer) const override
33+
{
34+
int offset = 0;
35+
offset += this->header.serialize(outbuffer + offset);
36+
offset += this->goal_id.serialize(outbuffer + offset);
37+
offset += this->goal.serialize(outbuffer + offset);
38+
return offset;
39+
}
40+
41+
virtual int deserialize(unsigned char *inbuffer) override
42+
{
43+
int offset = 0;
44+
offset += this->header.deserialize(inbuffer + offset);
45+
offset += this->goal_id.deserialize(inbuffer + offset);
46+
offset += this->goal.deserialize(inbuffer + offset);
47+
return offset;
48+
}
49+
50+
virtual const char * getType() override { return "actionlib_tutorials/AveragingActionGoal"; };
51+
virtual const char * getMD5() override { return "1561825b734ebd6039851c501e3fb570"; };
52+
53+
};
54+
55+
}
56+
#endif
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#ifndef _ROS_actionlib_tutorials_AveragingActionResult_h
2+
#define _ROS_actionlib_tutorials_AveragingActionResult_h
3+
4+
#include <stdint.h>
5+
#include <string.h>
6+
#include <stdlib.h>
7+
#include "ros/msg.h"
8+
#include "std_msgs/Header.h"
9+
#include "actionlib_msgs/GoalStatus.h"
10+
#include "actionlib_tutorials/AveragingResult.h"
11+
12+
namespace actionlib_tutorials
13+
{
14+
15+
class AveragingActionResult : public ros::Msg
16+
{
17+
public:
18+
typedef std_msgs::Header _header_type;
19+
_header_type header;
20+
typedef actionlib_msgs::GoalStatus _status_type;
21+
_status_type status;
22+
typedef actionlib_tutorials::AveragingResult _result_type;
23+
_result_type result;
24+
25+
AveragingActionResult():
26+
header(),
27+
status(),
28+
result()
29+
{
30+
}
31+
32+
virtual int serialize(unsigned char *outbuffer) const override
33+
{
34+
int offset = 0;
35+
offset += this->header.serialize(outbuffer + offset);
36+
offset += this->status.serialize(outbuffer + offset);
37+
offset += this->result.serialize(outbuffer + offset);
38+
return offset;
39+
}
40+
41+
virtual int deserialize(unsigned char *inbuffer) override
42+
{
43+
int offset = 0;
44+
offset += this->header.deserialize(inbuffer + offset);
45+
offset += this->status.deserialize(inbuffer + offset);
46+
offset += this->result.deserialize(inbuffer + offset);
47+
return offset;
48+
}
49+
50+
virtual const char * getType() override { return "actionlib_tutorials/AveragingActionResult"; };
51+
virtual const char * getMD5() override { return "8672cb489d347580acdcd05c5d497497"; };
52+
53+
};
54+
55+
}
56+
#endif
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
#ifndef _ROS_actionlib_tutorials_AveragingFeedback_h
2+
#define _ROS_actionlib_tutorials_AveragingFeedback_h
3+
4+
#include <stdint.h>
5+
#include <string.h>
6+
#include <stdlib.h>
7+
#include "ros/msg.h"
8+
9+
namespace actionlib_tutorials
10+
{
11+
12+
class AveragingFeedback : public ros::Msg
13+
{
14+
public:
15+
typedef int32_t _sample_type;
16+
_sample_type sample;
17+
typedef float _data_type;
18+
_data_type data;
19+
typedef float _mean_type;
20+
_mean_type mean;
21+
typedef float _std_dev_type;
22+
_std_dev_type std_dev;
23+
24+
AveragingFeedback():
25+
sample(0),
26+
data(0),
27+
mean(0),
28+
std_dev(0)
29+
{
30+
}
31+
32+
virtual int serialize(unsigned char *outbuffer) const override
33+
{
34+
int offset = 0;
35+
union {
36+
int32_t real;
37+
uint32_t base;
38+
} u_sample;
39+
u_sample.real = this->sample;
40+
*(outbuffer + offset + 0) = (u_sample.base >> (8 * 0)) & 0xFF;
41+
*(outbuffer + offset + 1) = (u_sample.base >> (8 * 1)) & 0xFF;
42+
*(outbuffer + offset + 2) = (u_sample.base >> (8 * 2)) & 0xFF;
43+
*(outbuffer + offset + 3) = (u_sample.base >> (8 * 3)) & 0xFF;
44+
offset += sizeof(this->sample);
45+
union {
46+
float real;
47+
uint32_t base;
48+
} u_data;
49+
u_data.real = this->data;
50+
*(outbuffer + offset + 0) = (u_data.base >> (8 * 0)) & 0xFF;
51+
*(outbuffer + offset + 1) = (u_data.base >> (8 * 1)) & 0xFF;
52+
*(outbuffer + offset + 2) = (u_data.base >> (8 * 2)) & 0xFF;
53+
*(outbuffer + offset + 3) = (u_data.base >> (8 * 3)) & 0xFF;
54+
offset += sizeof(this->data);
55+
union {
56+
float real;
57+
uint32_t base;
58+
} u_mean;
59+
u_mean.real = this->mean;
60+
*(outbuffer + offset + 0) = (u_mean.base >> (8 * 0)) & 0xFF;
61+
*(outbuffer + offset + 1) = (u_mean.base >> (8 * 1)) & 0xFF;
62+
*(outbuffer + offset + 2) = (u_mean.base >> (8 * 2)) & 0xFF;
63+
*(outbuffer + offset + 3) = (u_mean.base >> (8 * 3)) & 0xFF;
64+
offset += sizeof(this->mean);
65+
union {
66+
float real;
67+
uint32_t base;
68+
} u_std_dev;
69+
u_std_dev.real = this->std_dev;
70+
*(outbuffer + offset + 0) = (u_std_dev.base >> (8 * 0)) & 0xFF;
71+
*(outbuffer + offset + 1) = (u_std_dev.base >> (8 * 1)) & 0xFF;
72+
*(outbuffer + offset + 2) = (u_std_dev.base >> (8 * 2)) & 0xFF;
73+
*(outbuffer + offset + 3) = (u_std_dev.base >> (8 * 3)) & 0xFF;
74+
offset += sizeof(this->std_dev);
75+
return offset;
76+
}
77+
78+
virtual int deserialize(unsigned char *inbuffer) override
79+
{
80+
int offset = 0;
81+
union {
82+
int32_t real;
83+
uint32_t base;
84+
} u_sample;
85+
u_sample.base = 0;
86+
u_sample.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
87+
u_sample.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
88+
u_sample.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
89+
u_sample.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
90+
this->sample = u_sample.real;
91+
offset += sizeof(this->sample);
92+
union {
93+
float real;
94+
uint32_t base;
95+
} u_data;
96+
u_data.base = 0;
97+
u_data.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
98+
u_data.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
99+
u_data.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
100+
u_data.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
101+
this->data = u_data.real;
102+
offset += sizeof(this->data);
103+
union {
104+
float real;
105+
uint32_t base;
106+
} u_mean;
107+
u_mean.base = 0;
108+
u_mean.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
109+
u_mean.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
110+
u_mean.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
111+
u_mean.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
112+
this->mean = u_mean.real;
113+
offset += sizeof(this->mean);
114+
union {
115+
float real;
116+
uint32_t base;
117+
} u_std_dev;
118+
u_std_dev.base = 0;
119+
u_std_dev.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
120+
u_std_dev.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
121+
u_std_dev.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
122+
u_std_dev.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
123+
this->std_dev = u_std_dev.real;
124+
offset += sizeof(this->std_dev);
125+
return offset;
126+
}
127+
128+
virtual const char * getType() override { return "actionlib_tutorials/AveragingFeedback"; };
129+
virtual const char * getMD5() override { return "9e8dfc53c2f2a032ca33fa80ec46fd4f"; };
130+
131+
};
132+
133+
}
134+
#endif

0 commit comments

Comments
 (0)