You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Appendix: How to configure entities from reference file. (available at 0.1.1 or above)
131
131
- Use the reference method supported by Client and Agent. Please refer to [eProsima manual](https://micro-xrce-dds.readthedocs.io/en/latest/agent.html#run-an-agent) for detailed usage.
132
132
- For this feature, you need to set`UXR_CREATE_ENTITIES_USING_REF` definition to `1`.
133
-
```cpp
134
-
#define UXR_CREATE_ENTITIES_USING_REF 1
135
-
```
133
+
```cpp
134
+
#define UXR_CREATE_ENTITIES_USING_REF 1
135
+
```
136
136
- ros2arduino 0.2.0 or above.
137
137
- Set `UXR_CREATE_ENTITIES_USING_REF` to `1`in your sketch. (eg. [basic examples](https://github.com/ROBOTIS-GIT/ros2arduino/blob/master/examples/publisher/user_config.h))
138
138
- ros2arduino 0.1.1 ~ 0.1.4
139
139
- You need to change the settings(library code) in ros2arduino library. (In the [user_config.h](https://github.com/ROBOTIS-GIT/ros2arduino/blob/master/src/user_config.h))
140
140
141
-
142
-
An example reference file is as follows.
143
-
144
-
Create .refs file(in XML format) and run the Agent with the following options:
145
-
```bash
146
-
$ MicroXRCEAgent serial --dev /dev/ttyACM0 -b 115200 -r ros2arduino.refs
147
-
```
148
-
- ros2arduino.refs
149
-
```xml
150
-
<profiles>
151
-
<participant profile_name="ros2arduino_xml_node">
152
-
<rtps>
153
-
<name>ros2arduino_basic_node</name>
154
-
<builtin>
155
-
<domainId>0</domainId>
156
-
</builtin>
157
-
</rtps>
158
-
</participant>
159
-
160
-
161
-
<data_writer profile_name="arduino_chatter">
162
-
<topic>
163
-
<kind>NO_KEY</kind>
164
-
<name>rt/arduino_chatter</name>
165
-
<dataType>std_msgs::msg::dds_::String_</dataType>
166
-
<historyQos>
167
-
<kind>KEEP_LAST</kind>
168
-
<depth>10</depth>
169
-
</historyQos>
170
-
</topic>
171
-
</data_writer>
172
-
173
-
174
-
<data_reader profile_name="arduino_led">
175
-
<topic>
176
-
<name>rt/arduino_led</name>
177
-
<dataType>std_msgs::msg::dds_::Bool_</dataType>
178
-
</topic>
179
-
</data_reader>
180
-
181
-
182
-
<topic profile_name="Bool">
183
-
<kind>NO_KEY</kind>
184
-
<name>Bool</name>
185
-
<dataType>std_msgs::msg::dds_::Bool_</dataType>
186
-
</topic>
187
-
188
-
<topic profile_name="String">
189
-
<kind>NO_KEY</kind>
190
-
<name>String</name>
191
-
<dataType>std_msgs::msg::dds_::String_</dataType>
192
-
</topic>
193
-
</profiles>
194
-
```
141
+
- Create .refs file(in XML format) and run the Agent with the following options:
142
+
```bash
143
+
$ MicroXRCEAgent serial --dev /dev/ttyACM0 -b 115200 -r ros2arduino.refs
144
+
```
145
+
- An example reference file is as follows.
146
+
- ros2arduino.refs
147
+
```xml
148
+
<profiles>
149
+
<participant profile_name="ros2arduino_xml_node">
150
+
<rtps>
151
+
<name>ros2arduino_basic_node</name>
152
+
<builtin>
153
+
<domainId>0</domainId>
154
+
</builtin>
155
+
</rtps>
156
+
</participant>
157
+
158
+
159
+
<data_writer profile_name="arduino_chatter">
160
+
<topic>
161
+
<kind>NO_KEY</kind>
162
+
<name>rt/arduino_chatter</name>
163
+
<dataType>std_msgs::msg::dds_::String_</dataType>
164
+
<historyQos>
165
+
<kind>KEEP_LAST</kind>
166
+
<depth>10</depth>
167
+
</historyQos>
168
+
</topic>
169
+
</data_writer>
170
+
171
+
172
+
<data_reader profile_name="arduino_led">
173
+
<topic>
174
+
<name>rt/arduino_led</name>
175
+
<dataType>std_msgs::msg::dds_::Bool_</dataType>
176
+
</topic>
177
+
</data_reader>
178
+
179
+
180
+
<topic profile_name="Bool">
181
+
<kind>NO_KEY</kind>
182
+
<name>Bool</name>
183
+
<dataType>std_msgs::msg::dds_::Bool_</dataType>
184
+
</topic>
185
+
186
+
<topic profile_name="String">
187
+
<kind>NO_KEY</kind>
188
+
<name>String</name>
189
+
<dataType>std_msgs::msg::dds_::String_</dataType>
190
+
</topic>
191
+
</profiles>
192
+
```
195
193
196
194
#### Appendix: How to use the Security feature. (available at 0.1.1 or above)
0 commit comments