Skip to content

Commit 9916412

Browse files
committed
Recompile microros for s3, correct includes
1 parent 868b289 commit 9916412

File tree

2,398 files changed

+387344
-139
lines changed

Some content is hidden

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

2,398 files changed

+387344
-139
lines changed

ports/espressif/Makefile

+294
Large diffs are not rendered by default.

ports/espressif/boards/m5stack_cardputer/board.c

+19
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
#include "py/ringbuf.h"
1818
#include "shared/runtime/interrupt_char.h"
1919

20+
// ROS TESTING
21+
// #include <uros_network_interfaces.h>
22+
#include <rcl/rcl/rcl.h>
23+
#include <rcl/rcl/error_handling.h>
24+
#include <std_msgs/msg/int32.h>
25+
#include <rclc/rclc.h>
26+
#include <rclc/executor.h>
27+
// END ROS TESTING
28+
29+
2030

2131
#define DELAY 0x80
2232

@@ -42,6 +52,15 @@ uint8_t display_init_sequence[] = {
4252

4353
// Overrides the weakly linked function from supervisor/shared/board.c
4454
void board_init(void) {
55+
56+
// ROS TESTING
57+
rcl_allocator_t allocator = rcl_get_default_allocator();
58+
rcl_init_options_t init_options = rcl_get_zero_initialized_init_options();
59+
rcl_init_options_init(&init_options, allocator);
60+
61+
// END ROS TESTING
62+
63+
4564
busio_spi_obj_t *spi = common_hal_board_create_spi(0);
4665
fourwire_fourwire_obj_t *bus = &allocate_display_bus()->fourwire_bus;
4766
bus->base.type = &fourwire_fourwire_type;
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
// generated from rosidl_generator_c/resource/idl__description.c.em
2+
// with input from action_msgs:msg/GoalInfo.idl
3+
// generated code does not contain a copyright notice
4+
5+
#include "action_msgs/msg/detail/goal_info__functions.h"
6+
7+
ROSIDL_GENERATOR_C_PUBLIC_action_msgs
8+
const rosidl_type_hash_t *
9+
action_msgs__msg__GoalInfo__get_type_hash(
10+
const rosidl_message_type_support_t * type_support)
11+
{
12+
(void)type_support;
13+
static rosidl_type_hash_t hash = {1, {
14+
0x63, 0x98, 0xfe, 0x76, 0x31, 0x54, 0x55, 0x43,
15+
0x53, 0x93, 0x07, 0x16, 0xb2, 0x25, 0x94, 0x7f,
16+
0x93, 0xb6, 0x72, 0xf0, 0xfb, 0x2e, 0x49, 0xfd,
17+
0xd0, 0x1b, 0xb7, 0xa7, 0xe3, 0x79, 0x33, 0xe9,
18+
}};
19+
return &hash;
20+
}
21+
22+
#include <assert.h>
23+
#include <string.h>
24+
25+
// Include directives for referenced types
26+
#include "unique_identifier_msgs/msg/detail/uuid__functions.h"
27+
#include "builtin_interfaces/msg/detail/time__functions.h"
28+
29+
// Hashes for external referenced types
30+
#ifndef NDEBUG
31+
static const rosidl_type_hash_t builtin_interfaces__msg__Time__EXPECTED_HASH = {1, {
32+
0xb1, 0x06, 0x23, 0x5e, 0x25, 0xa4, 0xc5, 0xed,
33+
0x35, 0x09, 0x8a, 0xa0, 0xa6, 0x1a, 0x3e, 0xe9,
34+
0xc9, 0xb1, 0x8d, 0x19, 0x7f, 0x39, 0x8b, 0x0e,
35+
0x42, 0x06, 0xce, 0xa9, 0xac, 0xf9, 0xc1, 0x97,
36+
}};
37+
static const rosidl_type_hash_t unique_identifier_msgs__msg__UUID__EXPECTED_HASH = {1, {
38+
0x1b, 0x8e, 0x8a, 0xca, 0x95, 0x8c, 0xbe, 0xa2,
39+
0x8f, 0xe6, 0xef, 0x60, 0xbf, 0x6c, 0x19, 0xb6,
40+
0x83, 0xc9, 0x7a, 0x9e, 0xf6, 0x0b, 0xb3, 0x47,
41+
0x52, 0x06, 0x7d, 0x0f, 0x2f, 0x7a, 0xb4, 0x37,
42+
}};
43+
#endif
44+
45+
static char action_msgs__msg__GoalInfo__TYPE_NAME[] = "action_msgs/msg/GoalInfo";
46+
static char builtin_interfaces__msg__Time__TYPE_NAME[] = "builtin_interfaces/msg/Time";
47+
static char unique_identifier_msgs__msg__UUID__TYPE_NAME[] = "unique_identifier_msgs/msg/UUID";
48+
49+
// Define type names, field names, and default values
50+
static char action_msgs__msg__GoalInfo__FIELD_NAME__goal_id[] = "goal_id";
51+
static char action_msgs__msg__GoalInfo__FIELD_NAME__stamp[] = "stamp";
52+
53+
static rosidl_runtime_c__type_description__Field action_msgs__msg__GoalInfo__FIELDS[] = {
54+
{
55+
{action_msgs__msg__GoalInfo__FIELD_NAME__goal_id, 7, 7},
56+
{
57+
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NESTED_TYPE,
58+
0,
59+
0,
60+
{unique_identifier_msgs__msg__UUID__TYPE_NAME, 31, 31},
61+
},
62+
{NULL, 0, 0},
63+
},
64+
{
65+
{action_msgs__msg__GoalInfo__FIELD_NAME__stamp, 5, 5},
66+
{
67+
rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NESTED_TYPE,
68+
0,
69+
0,
70+
{builtin_interfaces__msg__Time__TYPE_NAME, 27, 27},
71+
},
72+
{NULL, 0, 0},
73+
},
74+
};
75+
76+
static rosidl_runtime_c__type_description__IndividualTypeDescription action_msgs__msg__GoalInfo__REFERENCED_TYPE_DESCRIPTIONS[] = {
77+
{
78+
{builtin_interfaces__msg__Time__TYPE_NAME, 27, 27},
79+
{NULL, 0, 0},
80+
},
81+
{
82+
{unique_identifier_msgs__msg__UUID__TYPE_NAME, 31, 31},
83+
{NULL, 0, 0},
84+
},
85+
};
86+
87+
const rosidl_runtime_c__type_description__TypeDescription *
88+
action_msgs__msg__GoalInfo__get_type_description(
89+
const rosidl_message_type_support_t * type_support)
90+
{
91+
(void)type_support;
92+
static bool constructed = false;
93+
static const rosidl_runtime_c__type_description__TypeDescription description = {
94+
{
95+
{action_msgs__msg__GoalInfo__TYPE_NAME, 24, 24},
96+
{action_msgs__msg__GoalInfo__FIELDS, 2, 2},
97+
},
98+
{action_msgs__msg__GoalInfo__REFERENCED_TYPE_DESCRIPTIONS, 2, 2},
99+
};
100+
if (!constructed) {
101+
assert(0 == memcmp(&builtin_interfaces__msg__Time__EXPECTED_HASH, builtin_interfaces__msg__Time__get_type_hash(NULL), sizeof(rosidl_type_hash_t)));
102+
description.referenced_type_descriptions.data[0].fields = builtin_interfaces__msg__Time__get_type_description(NULL)->type_description.fields;
103+
assert(0 == memcmp(&unique_identifier_msgs__msg__UUID__EXPECTED_HASH, unique_identifier_msgs__msg__UUID__get_type_hash(NULL), sizeof(rosidl_type_hash_t)));
104+
description.referenced_type_descriptions.data[1].fields = unique_identifier_msgs__msg__UUID__get_type_description(NULL)->type_description.fields;
105+
constructed = true;
106+
}
107+
return &description;
108+
}
109+
110+
static char toplevel_type_raw_source[] =
111+
"# Goal ID\n"
112+
"unique_identifier_msgs/UUID goal_id\n"
113+
"\n"
114+
"# Time when the goal was accepted\n"
115+
"builtin_interfaces/Time stamp";
116+
117+
static char msg_encoding[] = "msg";
118+
119+
// Define all individual source functions
120+
121+
const rosidl_runtime_c__type_description__TypeSource *
122+
action_msgs__msg__GoalInfo__get_individual_type_description_source(
123+
const rosidl_message_type_support_t * type_support)
124+
{
125+
(void)type_support;
126+
static const rosidl_runtime_c__type_description__TypeSource source = {
127+
{action_msgs__msg__GoalInfo__TYPE_NAME, 24, 24},
128+
{msg_encoding, 3, 3},
129+
{toplevel_type_raw_source, 111, 111},
130+
};
131+
return &source;
132+
}
133+
134+
const rosidl_runtime_c__type_description__TypeSource__Sequence *
135+
action_msgs__msg__GoalInfo__get_type_description_sources(
136+
const rosidl_message_type_support_t * type_support)
137+
{
138+
(void)type_support;
139+
static rosidl_runtime_c__type_description__TypeSource sources[3];
140+
static const rosidl_runtime_c__type_description__TypeSource__Sequence source_sequence = {sources, 3, 3};
141+
static bool constructed = false;
142+
if (!constructed) {
143+
sources[0] = *action_msgs__msg__GoalInfo__get_individual_type_description_source(NULL),
144+
sources[1] = *builtin_interfaces__msg__Time__get_individual_type_description_source(NULL);
145+
sources[2] = *unique_identifier_msgs__msg__UUID__get_individual_type_description_source(NULL);
146+
constructed = true;
147+
}
148+
return &source_sequence;
149+
}

0 commit comments

Comments
 (0)