Skip to content

Commit b95f813

Browse files
authored
PR #13702 from Eran: align ROS2 topics with Humble IDLs
2 parents c0b18f2 + 32e0f3c commit b95f813

Some content is hidden

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

43 files changed

+1358
-271
lines changed

third-party/realdds/include/realdds/topics/image-msg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// License: Apache 2.0. See LICENSE file in root directory.
2-
// Copyright(c) 2022-4 Intel Corporation. All Rights Reserved.
2+
// Copyright(c) 2022-5 Intel Corporation. All Rights Reserved.
33
#pragma once
44

55
#include <realdds/dds-defines.h>
66
#include <fastdds/rtps/common/Time_t.h>
77

8-
#include <realdds/topics/ros2/ros2image.h>
8+
#include <realdds/topics/ros2/sensor_msgs/msg/Image.h>
99

1010
#include <string>
1111
#include <memory>

third-party/realdds/include/realdds/topics/imu-msg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// License: Apache 2.0. See LICENSE file in root directory.
2-
// Copyright(c) 2023-4 Intel Corporation. All Rights Reserved.
2+
// Copyright(c) 2023-5 Intel Corporation. All Rights Reserved.
33
#pragma once
44

55
#include <realdds/dds-defines.h>
66
#include <fastdds/rtps/common/Time_t.h>
77

8-
#include <realdds/topics/ros2/ros2imu.h>
8+
#include <realdds/topics/ros2/sensor_msgs/msg/Imu.h>
99

1010
#include <string>
1111
#include <memory>

third-party/realdds/include/realdds/topics/ros2/ros2time.h renamed to third-party/realdds/include/realdds/topics/ros2/builtin_interfaces/msg/Time.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// License: Apache 2.0. See LICENSE file in root directory.
2-
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.
2+
// Copyright(c) 2023-5 Intel Corporation. All Rights Reserved.
33

44
/*!
55
* @file Time.h
@@ -8,8 +8,8 @@
88
* This file was generated by the tool gen.
99
*/
1010

11-
#ifndef _FAST_DDS_GENERATED_STD_MSGS_MSG_TIME_H_
12-
#define _FAST_DDS_GENERATED_STD_MSGS_MSG_TIME_H_
11+
#ifndef _FAST_DDS_GENERATED_BUILTIN_INTERFACES_MSG_TIME_H_
12+
#define _FAST_DDS_GENERATED_BUILTIN_INTERFACES_MSG_TIME_H_
1313

1414

1515
//#include <fastrtps/utils/fixed_size_string.hpp>
@@ -52,7 +52,7 @@ class Cdr;
5252
} // namespace eprosima
5353

5454

55-
namespace std_msgs {
55+
namespace builtin_interfaces {
5656
namespace msg {
5757
/*!
5858
* @brief This class represents the structure Time defined by the user in the IDL file.
@@ -74,42 +74,42 @@ namespace std_msgs {
7474

7575
/*!
7676
* @brief Copy constructor.
77-
* @param x Reference to the object std_msgs::msg::Time that will be copied.
77+
* @param x Reference to the object builtin_interfaces::msg::Time that will be copied.
7878
*/
7979
eProsima_user_DllExport Time(
8080
const Time& x);
8181

8282
/*!
8383
* @brief Move constructor.
84-
* @param x Reference to the object std_msgs::msg::Time that will be copied.
84+
* @param x Reference to the object builtin_interfaces::msg::Time that will be copied.
8585
*/
8686
eProsima_user_DllExport Time(
8787
Time&& x) noexcept;
8888

8989
/*!
9090
* @brief Copy assignment.
91-
* @param x Reference to the object std_msgs::msg::Time that will be copied.
91+
* @param x Reference to the object builtin_interfaces::msg::Time that will be copied.
9292
*/
9393
eProsima_user_DllExport Time& operator =(
9494
const Time& x);
9595

9696
/*!
9797
* @brief Move assignment.
98-
* @param x Reference to the object std_msgs::msg::Time that will be copied.
98+
* @param x Reference to the object builtin_interfaces::msg::Time that will be copied.
9999
*/
100100
eProsima_user_DllExport Time& operator =(
101101
Time&& x) noexcept;
102102

103103
/*!
104104
* @brief Comparison operator.
105-
* @param x std_msgs::msg::Time object to compare.
105+
* @param x builtin_interfaces::msg::Time object to compare.
106106
*/
107107
eProsima_user_DllExport bool operator ==(
108108
const Time& x) const;
109109

110110
/*!
111111
* @brief Comparison operator.
112-
* @param x std_msgs::msg::Time object to compare.
112+
* @param x builtin_interfaces::msg::Time object to compare.
113113
*/
114114
eProsima_user_DllExport bool operator !=(
115115
const Time& x) const;
@@ -169,7 +169,7 @@ namespace std_msgs {
169169
* @return Serialized size.
170170
*/
171171
eProsima_user_DllExport static size_t getCdrSerializedSize(
172-
const std_msgs::msg::Time& data,
172+
const builtin_interfaces::msg::Time& data,
173173
size_t current_alignment = 0);
174174

175175

@@ -216,6 +216,6 @@ namespace std_msgs {
216216
uint32_t m_nanosec;
217217
};
218218
} // namespace msg
219-
} // namespace std_msgs
219+
} // namespace builtin_interfaces
220220

221-
#endif // _FAST_DDS_GENERATED_STD_MSGS_MSG_TIME_H_
221+
#endif // _FAST_DDS_GENERATED_BUILTIN_INTERFACES_MSG_TIME_H_

third-party/realdds/include/realdds/topics/ros2/ros2timePubSubTypes.h renamed to third-party/realdds/include/realdds/topics/ros2/builtin_interfaces/msg/TimePubSubTypes.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// License: Apache 2.0. See LICENSE file in root directory.
2-
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.
2+
// Copyright(c) 2023-5 Intel Corporation. All Rights Reserved.
33

44
/*!
55
* @file TimePubSubTypes.h
@@ -9,20 +9,20 @@
99
*/
1010

1111

12-
#ifndef _FAST_DDS_GENERATED_STD_MSGS_MSG_TIME_PUBSUBTYPES_H_
13-
#define _FAST_DDS_GENERATED_STD_MSGS_MSG_TIME_PUBSUBTYPES_H_
12+
#ifndef _FAST_DDS_GENERATED_BUILTIN_INTERFACES_MSG_TIME_PUBSUBTYPES_H_
13+
#define _FAST_DDS_GENERATED_BUILTIN_INTERFACES_MSG_TIME_PUBSUBTYPES_H_
1414

1515
#include <fastdds/dds/topic/TopicDataType.hpp>
1616
#include <fastrtps/utils/md5.h>
1717

18-
#include "ros2time.h"
18+
#include "Time.h"
1919

2020
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
2121
#error \
2222
Generated Time is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen.
2323
#endif // GEN_API_VER
2424

25-
namespace std_msgs
25+
namespace builtin_interfaces
2626
{
2727
namespace msg
2828
{
@@ -93,4 +93,4 @@ namespace std_msgs
9393
}
9494
}
9595

96-
#endif // _FAST_DDS_GENERATED_STD_MSGS_MSG_TIME_PUBSUBTYPES_H_
96+
#endif // _FAST_DDS_GENERATED_BUILTIN_INTERFACES_MSG_TIME_PUBSUBTYPES_H_

third-party/realdds/include/realdds/topics/ros2/ros2quaternionPubSubTypes.h renamed to third-party/realdds/include/realdds/topics/ros2/geometry_msgs/msg/QuaternionPubSubTypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// License: Apache 2.0. See LICENSE file in root directory.
2-
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.
2+
// Copyright(c) 2023-5 Intel Corporation. All Rights Reserved.
33

44
/*!
55
* @file QuaternionPubSubTypes.h
@@ -15,7 +15,7 @@
1515
#include <fastdds/dds/topic/TopicDataType.hpp>
1616
#include <fastrtps/utils/md5.h>
1717

18-
#include <realdds/topics/ros2/ros2quaternion.h>
18+
#include "Quaternion.h"
1919

2020
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
2121
#error \

third-party/realdds/include/realdds/topics/ros2/ros2vector3PubSubTypes.h renamed to third-party/realdds/include/realdds/topics/ros2/geometry_msgs/msg/Vector3PubSubTypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// License: Apache 2.0. See LICENSE file in root directory.
2-
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.
2+
// Copyright(c) 2023-5 Intel Corporation. All Rights Reserved.
33

44
/*!
55
* @file Vector3PubSubTypes.h
@@ -15,7 +15,7 @@
1515
#include <fastdds/dds/topic/TopicDataType.hpp>
1616
#include <fastrtps/utils/md5.h>
1717

18-
#include "ros2vector3.h"
18+
#include "Vector3.h"
1919

2020
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
2121
#error \

third-party/realdds/include/realdds/topics/ros2/ros2image.h renamed to third-party/realdds/include/realdds/topics/ros2/sensor_msgs/msg/Image.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// License: Apache 2.0. See LICENSE file in root directory.
2-
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.
2+
// Copyright(c) 2023-5 Intel Corporation. All Rights Reserved.
33

44
/*!
55
* @file Image.h
@@ -11,7 +11,7 @@
1111
#ifndef _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_IMAGE_H_
1212
#define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_IMAGE_H_
1313

14-
#include "ros2header.h"
14+
#include "../../std_msgs/msg/Header.h"
1515

1616
//#include <fastrtps/utils/fixed_size_string.hpp>
1717

third-party/realdds/include/realdds/topics/ros2/ros2imagePubSubTypes.h renamed to third-party/realdds/include/realdds/topics/ros2/sensor_msgs/msg/ImagePubSubTypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// License: Apache 2.0. See LICENSE file in root directory.
2-
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.
2+
// Copyright(c) 2023-5 Intel Corporation. All Rights Reserved.
33

44
/*!
55
* @file ImagePubSubTypes.h
@@ -15,7 +15,7 @@
1515
#include <fastdds/dds/topic/TopicDataType.hpp>
1616
#include <fastrtps/utils/md5.h>
1717

18-
#include "ros2image.h"
18+
#include "Image.h"
1919

2020
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
2121
#error \

third-party/realdds/include/realdds/topics/ros2/ros2imu.h renamed to third-party/realdds/include/realdds/topics/ros2/sensor_msgs/msg/Imu.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// License: Apache 2.0. See LICENSE file in root directory.
2-
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.
2+
// Copyright(c) 2023-5 Intel Corporation. All Rights Reserved.
33

44
/*!
55
* @file Imu.h
@@ -11,9 +11,9 @@
1111
#ifndef _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_IMU_H_
1212
#define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_IMU_H_
1313

14-
#include <realdds/topics/ros2/ros2vector3.h>
15-
#include <realdds/topics/ros2/ros2quaternion.h>
16-
#include <realdds/topics/ros2/ros2header.h>
14+
#include "../../geometry_msgs/msg/Vector3.h"
15+
#include "../../geometry_msgs/msg/Quaternion.h"
16+
#include "../../std_msgs/msg/Header.h"
1717

1818
#include <fastrtps/utils/fixed_size_string.hpp>
1919

@@ -57,7 +57,7 @@ class Cdr;
5757

5858
namespace sensor_msgs {
5959
namespace msg {
60-
typedef std::array<double, 9> sensor_msgs__Imu__double_array_9;
60+
typedef std::array<double, 9> double__9;
6161
/*!
6262
* @brief This class represents the structure Imu defined by the user in the IDL file.
6363
* @ingroup IMU
@@ -173,26 +173,26 @@ namespace sensor_msgs {
173173
* @param _orientation_covariance New value to be copied in member orientation_covariance
174174
*/
175175
eProsima_user_DllExport void orientation_covariance(
176-
const sensor_msgs::msg::sensor_msgs__Imu__double_array_9& _orientation_covariance);
176+
const sensor_msgs::msg::double__9& _orientation_covariance);
177177

178178
/*!
179179
* @brief This function moves the value in member orientation_covariance
180180
* @param _orientation_covariance New value to be moved in member orientation_covariance
181181
*/
182182
eProsima_user_DllExport void orientation_covariance(
183-
sensor_msgs::msg::sensor_msgs__Imu__double_array_9&& _orientation_covariance);
183+
sensor_msgs::msg::double__9&& _orientation_covariance);
184184

185185
/*!
186186
* @brief This function returns a constant reference to member orientation_covariance
187187
* @return Constant reference to member orientation_covariance
188188
*/
189-
eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__Imu__double_array_9& orientation_covariance() const;
189+
eProsima_user_DllExport const sensor_msgs::msg::double__9& orientation_covariance() const;
190190

191191
/*!
192192
* @brief This function returns a reference to member orientation_covariance
193193
* @return Reference to member orientation_covariance
194194
*/
195-
eProsima_user_DllExport sensor_msgs::msg::sensor_msgs__Imu__double_array_9& orientation_covariance();
195+
eProsima_user_DllExport sensor_msgs::msg::double__9& orientation_covariance();
196196
/*!
197197
* @brief This function copies the value in member angular_velocity
198198
* @param _angular_velocity New value to be copied in member angular_velocity
@@ -223,26 +223,26 @@ namespace sensor_msgs {
223223
* @param _angular_velocity_covariance New value to be copied in member angular_velocity_covariance
224224
*/
225225
eProsima_user_DllExport void angular_velocity_covariance(
226-
const sensor_msgs::msg::sensor_msgs__Imu__double_array_9& _angular_velocity_covariance);
226+
const sensor_msgs::msg::double__9& _angular_velocity_covariance);
227227

228228
/*!
229229
* @brief This function moves the value in member angular_velocity_covariance
230230
* @param _angular_velocity_covariance New value to be moved in member angular_velocity_covariance
231231
*/
232232
eProsima_user_DllExport void angular_velocity_covariance(
233-
sensor_msgs::msg::sensor_msgs__Imu__double_array_9&& _angular_velocity_covariance);
233+
sensor_msgs::msg::double__9&& _angular_velocity_covariance);
234234

235235
/*!
236236
* @brief This function returns a constant reference to member angular_velocity_covariance
237237
* @return Constant reference to member angular_velocity_covariance
238238
*/
239-
eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__Imu__double_array_9& angular_velocity_covariance() const;
239+
eProsima_user_DllExport const sensor_msgs::msg::double__9& angular_velocity_covariance() const;
240240

241241
/*!
242242
* @brief This function returns a reference to member angular_velocity_covariance
243243
* @return Reference to member angular_velocity_covariance
244244
*/
245-
eProsima_user_DllExport sensor_msgs::msg::sensor_msgs__Imu__double_array_9& angular_velocity_covariance();
245+
eProsima_user_DllExport sensor_msgs::msg::double__9& angular_velocity_covariance();
246246
/*!
247247
* @brief This function copies the value in member linear_acceleration
248248
* @param _linear_acceleration New value to be copied in member linear_acceleration
@@ -273,26 +273,26 @@ namespace sensor_msgs {
273273
* @param _linear_acceleration_covariance New value to be copied in member linear_acceleration_covariance
274274
*/
275275
eProsima_user_DllExport void linear_acceleration_covariance(
276-
const sensor_msgs::msg::sensor_msgs__Imu__double_array_9& _linear_acceleration_covariance);
276+
const sensor_msgs::msg::double__9& _linear_acceleration_covariance);
277277

278278
/*!
279279
* @brief This function moves the value in member linear_acceleration_covariance
280280
* @param _linear_acceleration_covariance New value to be moved in member linear_acceleration_covariance
281281
*/
282282
eProsima_user_DllExport void linear_acceleration_covariance(
283-
sensor_msgs::msg::sensor_msgs__Imu__double_array_9&& _linear_acceleration_covariance);
283+
sensor_msgs::msg::double__9&& _linear_acceleration_covariance);
284284

285285
/*!
286286
* @brief This function returns a constant reference to member linear_acceleration_covariance
287287
* @return Constant reference to member linear_acceleration_covariance
288288
*/
289-
eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__Imu__double_array_9& linear_acceleration_covariance() const;
289+
eProsima_user_DllExport const sensor_msgs::msg::double__9& linear_acceleration_covariance() const;
290290

291291
/*!
292292
* @brief This function returns a reference to member linear_acceleration_covariance
293293
* @return Reference to member linear_acceleration_covariance
294294
*/
295-
eProsima_user_DllExport sensor_msgs::msg::sensor_msgs__Imu__double_array_9& linear_acceleration_covariance();
295+
eProsima_user_DllExport sensor_msgs::msg::double__9& linear_acceleration_covariance();
296296

297297
/*!
298298
* @brief This function returns the maximum serialized size of an object
@@ -355,11 +355,11 @@ namespace sensor_msgs {
355355

356356
std_msgs::msg::Header m_header;
357357
geometry_msgs::msg::Quaternion m_orientation;
358-
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 m_orientation_covariance;
358+
sensor_msgs::msg::double__9 m_orientation_covariance;
359359
geometry_msgs::msg::Vector3 m_angular_velocity;
360-
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 m_angular_velocity_covariance;
360+
sensor_msgs::msg::double__9 m_angular_velocity_covariance;
361361
geometry_msgs::msg::Vector3 m_linear_acceleration;
362-
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 m_linear_acceleration_covariance;
362+
sensor_msgs::msg::double__9 m_linear_acceleration_covariance;
363363
};
364364
} // namespace msg
365365
} // namespace sensor_msgs

third-party/realdds/include/realdds/topics/ros2/ros2imuPubSubTypes.h renamed to third-party/realdds/include/realdds/topics/ros2/sensor_msgs/msg/ImuPubSubTypes.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// License: Apache 2.0. See LICENSE file in root directory.
2-
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.
2+
// Copyright(c) 2023-5 Intel Corporation. All Rights Reserved.
33

44
/*!
55
* @file ImuPubSubTypes.h
@@ -15,7 +15,7 @@
1515
#include <fastdds/dds/topic/TopicDataType.hpp>
1616
#include <fastrtps/utils/md5.h>
1717

18-
#include <realdds/topics/ros2/ros2imu.h>
18+
#include "Imu.h"
1919

2020
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
2121
#error \
@@ -26,7 +26,7 @@ namespace sensor_msgs
2626
{
2727
namespace msg
2828
{
29-
typedef std::array<double, 9> sensor_msgs__Imu__double_array_9;
29+
typedef std::array<double, 9> double__9;
3030
/*!
3131
* @brief This class represents the TopicDataType of the type Imu defined by the user in the IDL file.
3232
* @ingroup IMU

0 commit comments

Comments
 (0)