AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
var/agx-dependencies/agx_dependencies_240424_ubuntu_24.04_64/include/agx-nt-ros2/MessageTypes.h
Go to the documentation of this file.
1/*
2Copyright 2007-2023. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
19// AGX Networking Toolbox includes.
21
22// Standard library includes.
23#include <stdint.h>
24#include <string>
25#include <vector>
26
27#ifdef _MSC_VER
28# pragma warning(push)
29# pragma warning(disable: 4251) // Disable warnings about members needing dll interface.
30#endif
31
32
33namespace agxROS2
34{
35 namespace agxMsgs
36 {
38 {
39 std::vector<uint8_t> data;
40 };
41
43 {
44 std::vector<Any> data;
45 };
46 }
47
48 namespace builtinInterfaces
49 {
51 {
52 int32_t sec {0};
53 uint32_t nanosec {0};
54 };
55
57 {
58 int32_t sec {0};
59 uint32_t nanosec {0};
60 };
61 }
62
63 namespace rosgraphMsgs
64 {
69 }
70
71 namespace stdMsgs
72 {
74 {
75 std::string label;
76 uint32_t size {0};
77 uint32_t stride {0};
78 };
79
81 {
82 std::vector<MultiArrayDimension> dim;
83 uint32_t data_offset {0};
84 };
85
87 {
88 bool data = false;
89 };
90
92 {
93 uint8_t data {0};
94 };
95
97 {
99 std::vector<uint8_t> data;
100 };
101
103 {
104 uint8_t data {0};
105 };
106
108 {
109 float r {0.f};
110 float g {0.f};
111 float b {0.f};
112 float a {0.f};
113 };
114
116 {
117 uint8_t structure_needs_at_least_one_member {0};
118 };
119
121 {
122 float data {0.f};
123 };
124
130
132 {
133 double data {0.0};
134 };
135
137 {
139 std::vector<double> data;
140 };
141
143 {
144 int8_t data {0};
145 };
146
148 {
150 std::vector<int8_t> data;
151 };
152
154 {
155 int16_t data {0};
156 };
157
159 {
161 std::vector<int16_t> data;
162 };
163
165 {
166 int32_t data {0};
167 };
168
170 {
172 std::vector<int32_t> data;
173 };
174
176 {
177 int64_t data {0};
178 };
179
181 {
183 std::vector<int64_t> data;
184 };
185
187 {
188 uint16_t data {0};
189 };
190
192 {
193 uint8_t data {0};
194 };
195
197 {
199 std::vector<uint8_t> data;
200 };
201
203 {
205 std::vector<uint16_t> data;
206 };
207
209 {
210 uint32_t data {0};
211 };
212
214 {
216 std::vector<uint32_t> data;
217 };
218
220 {
221 uint64_t data {0};
222 };
223
225 {
227 std::vector<uint64_t> data;
228 };
229
231 {
232 std::string data;
233 };
234
235
241 }
242
243 namespace geometryMsgs
244 {
245 struct Vector3
246 {
247 double x {0.0};
248 double y {0.0};
249 double z {0.0};
250 };
251
253 {
254 double x {0.0};
255 double y {0.0};
256 double z {0.0};
257 double w {0.0};
258 };
259
265
271
273 {
275 double covariance[36];
276 };
277
283
284 struct Inertia
285 {
286 double m {0.0};
288 double ixx {0.0};
289 double ixy {0.0};
290 double ixz {0.0};
291 double iyy {0.0};
292 double iyz {0.0};
293 double izz {0.0};
294 };
295
301
302 struct Point
303 {
304 double x {0.0};
305 double y {0.0};
306 double z {0.0};
307 };
308
309 struct Point32
310 {
311 float x {0.f};
312 float y {0.f};
313 float z {0.f};
314 };
315
321
322 struct Polygon
323 {
324 std::vector<Point32> points;
325 };
326
332
338
339 struct Pose2D
340 {
341 double x {0.0};
342 double y {0.0};
343 double theta {0.0};
344 };
345
347 {
349 std::vector<Pose> poses;
350 };
351
357
359 {
361 double covariance[36];
362 };
363
369
375
381
388
394
400
402 {
404 double covariance[36];
405 };
406
412
418
424
430 }
431
432 namespace sensorMsgs
433 {
435 {
437 float voltage {0.f};
438 float temperature {0.f};
439 float current {0.f};
440 float charge {0.f};
441 float capacity {0.f};
442 float design_capacity {0.f};
443 float percentage {0.f};
447 bool present = false;
448 std::vector<float> cell_voltage;
449 std::vector<float> cell_temperature;
450 std::string location;
451 std::string serial_number;
452 };
453
455 {
456 std::string name;
457 std::vector<float> values;
458 };
459
461 {
463 std::string format;
464 std::vector<uint8_t> data;
465 };
466
468 {
470 double fluid_pressure {0.0};
471 double variance {0.0};
472 };
473
475 {
477 double illuminance {0.0};
478 double variance {0.0};
479 };
480
481 struct Image
482 {
484 uint32_t height {0};
485 uint32_t width {0};
486 std::string encoding;
487 uint8_t is_bigendian {0};
488 uint32_t step {0};
489 std::vector<uint8_t> data;
490 };
491
502
504 {
506 std::vector<std::string> name;
507 std::vector<double> position;
508 std::vector<double> velocity;
509 std::vector<double> effort;
510 };
511
512 struct Joy
513 {
515 std::vector<float> axes;
516 std::vector<int32_t> buttons;
517 };
518
520 {
521 uint8_t type {0};
522 uint8_t id {0};
523 float intensity {0.f};
524 };
525
527 {
528 std::vector<JoyFeedback> array;
529 };
530
532 {
533 std::vector<float> echoes;
534 };
535
537 {
539 float angle_min {0.f};
540 float angle_max {0.f};
541 float angle_increment {0.f};
542 float time_increment {0.f};
543 float scan_time {0.f};
544 float range_min {0.f};
545 float range_max {0.f};
546 std::vector<float> ranges;
547 std::vector<float> intensities;
548 };
549
556
558 {
560 std::vector<std::string> joint_names;
561 std::vector<geometryMsgs::Transform> transforms;
562 std::vector<geometryMsgs::Twist> twist;
563 std::vector<geometryMsgs::Wrench> wrench;
564 };
565
567 {
569 float angle_min {0.f};
570 float angle_max {0.f};
571 float angle_increment {0.f};
572 float time_increment {0.f};
573 float scan_time {0.f};
574 float range_min {0.f};
575 float range_max {0.f};
576 std::vector<LaserEcho> ranges;
577 std::vector<LaserEcho> intensities;
578 };
579
581 {
582 int8_t status {0};
583 uint16_t service {0};
584 };
585
587 {
590 double latitude {0.0};
591 double longitude {0.0};
592 double altitude {0.0};
595 };
596
598 {
600 std::vector<geometryMsgs::Point32> points;
601 std::vector<ChannelFloat32> channels;
602 };
603
605 {
606 std::string name;
607 uint32_t offset {0};
608 uint8_t datatype {0};
609 uint32_t count {0};
610 };
611
613 {
615 uint32_t height {0};
616 uint32_t width {0};
617 std::vector<PointField> fields;
618 bool is_bigendian = false;
619 uint32_t point_step {0};
620 uint32_t row_step {0};
621 std::vector<uint8_t> data;
622 bool is_dense = false;
623 };
624
625 struct Range
626 {
628 uint8_t radiation_type {0};
629 float field_of_view {0.f};
630 float min_range {0.f};
631 float max_range {0.f};
632 float range {0.f};
633 };
634
636 {
637 uint32_t x_offset {0};
638 uint32_t y_offset {0};
639 uint32_t height {0};
640 uint32_t width {0};
641 bool do_rectify = false;
642 };
643
645 {
647 uint32_t height {0};
648 uint32_t width {0};
649 std::string distortion_model;
650 std::vector<double> d;
651 double k[9];
652 double r[9];
653 double p[12];
654 uint32_t binning_x {0};
655 uint32_t binning_y {0};
657 };
658
660 {
662 double relative_humidity {0.0};
663 double variance {0.0};
664 };
665
667 {
669 double temperature {0.0};
670 double variance {0.0};
671 };
672
679 }
680}
681
682#ifdef _MSC_VER
683# pragma warning(pop)
684#endif
#define AGXNTROS2_EXPORT