Skip to content

Commit 0710f74

Browse files
authored
Add kilted CI, bump action-ros-ci version, use ghcr (#6)
* Add kilted CI, bump action-ros-ci version, use ghcr Signed-off-by: Emerson Knapp <[email protected]> * Most specializations are humble-or-not so switch the ordering to have old-first else new Signed-off-by: Emerson Knapp <[email protected]> * Remove extra defs since not needed Signed-off-by: Emerson Knapp <[email protected]> --------- Signed-off-by: Emerson Knapp <[email protected]>
1 parent 83cd774 commit 0710f74

File tree

5 files changed

+16
-22
lines changed

5 files changed

+16
-22
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ jobs:
1616
ubuntu: jammy
1717
- ros: jazzy
1818
ubuntu: noble
19+
- ros: kilted
20+
ubuntu: noble-testing
1921
- ros: rolling
2022
ubuntu: noble
2123
name: ROS 2 ${{ matrix.ros }}
2224
container:
23-
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu }}-latest
25+
image: ghcr.io/ros-tooling/setup-ros-docker/setup-ros-docker-ubuntu-${{ matrix.ubuntu }}:latest
2426
env:
2527
ROS_DISTRO: ${{ matrix.ros }}
2628
steps:
2729
- uses: actions/checkout@v4
28-
- uses: ros-tooling/action-ros-ci@v0.3
30+
- uses: ros-tooling/action-ros-ci@v0.4
2931
with:
3032
target-ros2-distro: ${{ matrix.ros }}
3133
colcon-defaults: |

rosbag2_storage_broll/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ endif()
77

88
if("$ENV{ROS_DISTRO}" STREQUAL "humble")
99
add_compile_definitions(ROS2_HUMBLE)
10-
elseif("$ENV{ROS_DISTRO}" STREQUAL "iron")
11-
add_compile_definitions(ROS2_IRON)
12-
elseif("$ENV{ROS_DISTRO}" STREQUAL "jazzy")
13-
add_compile_definitions(ROS2_JAZZY)
14-
elseif("$ENV{ROS_DISTRO}" STREQUAL "rolling")
15-
add_compile_definitions(ROS2_ROLLING)
16-
else()
17-
message(FATAL_ERROR "Unhandled ROS distro $ENV{ROS_DISTRO}")
1810
endif()
1911

2012
# find dependencies

rosbag2_storage_broll/include/rosbag2_storage_broll/bag_utils.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ serialize_msg(
5151
serde.serialize_message(&msg, &serialized_msg);
5252

5353
auto bag_msg = std::make_shared<rosbag2_storage::SerializedBagMessage>();
54-
#if defined(ROS2_JAZZY) || defined(ROS2_ROLLING)
55-
bag_msg->recv_timestamp = timestamp.nanoseconds();
56-
#else
54+
#if defined(ROS2_HUMBLE)
5755
bag_msg->time_stamp = timestamp.nanoseconds();
56+
#else
57+
bag_msg->recv_timestamp = timestamp.nanoseconds();
5858
#endif
5959
bag_msg->topic_name = topic_name;
6060

rosbag2_storage_broll/src/bag_utils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
#include "rclcpp/qos.hpp"
1919
#include "rosbag2_storage/yaml.hpp"
2020
#include "rosbag2_storage_broll/bag_utils.hpp"
21-
#if defined(ROS2_JAZZY) || defined(ROS2_ROLLING)
22-
#include "rosbag2_storage/qos.hpp"
23-
using Rosbag2QoS = rosbag2_storage::Rosbag2QoS;
24-
#else
21+
#if defined(ROS2_HUMBLE)
2522
#include "rosbag2_transport/qos.hpp"
2623
using Rosbag2QoS = rosbag2_transport::Rosbag2QoS;
24+
#else
25+
#include "rosbag2_storage/qos.hpp"
26+
using Rosbag2QoS = rosbag2_storage::Rosbag2QoS;
2727
#endif
2828

2929
namespace rosbag2_storage_broll

rosbag2_storage_broll/src/broll_storage.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ rosbag2_storage::TopicInformation create_topic_info(
4242
topic_info.topic_metadata.name = topic_name;
4343
topic_info.topic_metadata.type = type_name;
4444
topic_info.topic_metadata.serialization_format = "cdr";
45-
#if defined(ROS2_JAZZY) || defined(ROS2_ROLLING)
46-
topic_info.topic_metadata.offered_qos_profiles.push_back(qos_profile);
47-
#else
45+
#if defined(ROS2_HUMBLE)
4846
topic_info.topic_metadata.offered_qos_profiles = rosbag2_storage_broll::serialize_qos(
4947
{
5048
qos_profile
5149
});
50+
#else
51+
topic_info.topic_metadata.offered_qos_profiles.push_back(qos_profile);
5252
#endif
5353
topic_info.message_count = 1;
5454
return topic_info;
@@ -121,7 +121,7 @@ class BRollStorage : public rosbag2_storage::storage_interfaces::ReadOnlyInterfa
121121
bool has_next() override;
122122
std::shared_ptr<rosbag2_storage::SerializedBagMessage> read_next() override;
123123
std::vector<rosbag2_storage::TopicMetadata> get_all_topics_and_types() override;
124-
#if defined(ROS2_IRON) || defined(ROS2_JAZZY) || defined(ROS2_ROLLING)
124+
#ifndef ROS2_HUMBLE
125125
// Iron interface additions
126126
bool set_read_order(const rosbag2_storage::ReadOrder & order) override;
127127
void get_all_message_definitions(
@@ -294,7 +294,7 @@ std::vector<rosbag2_storage::TopicMetadata> BRollStorage::get_all_topics_and_typ
294294
return topics;
295295
}
296296

297-
#if defined(ROS2_IRON) || defined(ROS2_JAZZY) || defined(ROS2_ROLLING)
297+
#ifndef ROS2_HUMBLE
298298
// Iron interface additions
299299
bool BRollStorage::set_read_order(const rosbag2_storage::ReadOrder & order)
300300
{

0 commit comments

Comments
 (0)