Skip to content

Commit

Permalink
Merge pull request #68 from ethz-asl/fix/update_livox_callback_code
Browse files Browse the repository at this point in the history
Fix compilation errors due to outdated Livox callback code
  • Loading branch information
victorreijgwart authored Aug 30, 2024
2 parents 3f3f0cd + 10222b1 commit 964e740
Show file tree
Hide file tree
Showing 23 changed files with 53 additions and 18 deletions.
3 changes: 3 additions & 0 deletions examples/cpp/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package wavemap_examples_cpp
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.0.1 (2024-08-30)
------------------

2.0.0 (2024-08-12)
------------------
* New features
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(wavemap_examples_cpp VERSION 2.0.0 LANGUAGES CXX)
project(wavemap_examples_cpp VERSION 2.0.1 LANGUAGES CXX)

# Load the wavemap library
# First, try to load it from sources
Expand Down
3 changes: 3 additions & 0 deletions examples/ros1/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package wavemap_examples_ros1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.0.1 (2024-08-30)
------------------

2.0.0 (2024-08-12)
------------------
* New features
Expand Down
2 changes: 1 addition & 1 deletion examples/ros1/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<package format="2">
<name>wavemap_examples_ros1</name>
<version>2.0.0</version>
<version>2.0.1</version>
<description>Usages examples for wavemap's ROS1 interface.</description>

<maintainer email="[email protected]">Victor Reijgwart</maintainer>
Expand Down
3 changes: 3 additions & 0 deletions interfaces/ros1/wavemap/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package wavemap
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.0.1 (2024-08-30)
------------------

2.0.0 (2024-08-12)
------------------
* New features
Expand Down
2 changes: 1 addition & 1 deletion interfaces/ros1/wavemap/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<package format="2">
<name>wavemap</name>
<version>2.0.0</version>
<version>2.0.1</version>
<description>Base library for wavemap.</description>

<maintainer email="[email protected]">Victor Reijgwart</maintainer>
Expand Down
3 changes: 3 additions & 0 deletions interfaces/ros1/wavemap_all/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package wavemap_all
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.0.1 (2024-08-30)
------------------

2.0.0 (2024-08-12)
------------------
* Make utility scripts ROS agnostic and remove wavemap_utils ROS pkg
Expand Down
2 changes: 1 addition & 1 deletion interfaces/ros1/wavemap_all/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<package format="2">
<name>wavemap_all</name>
<version>2.0.0</version>
<version>2.0.1</version>
<description>Metapackage that builds all wavemap packages.</description>

<maintainer email="[email protected]">Victor Reijgwart</maintainer>
Expand Down
3 changes: 3 additions & 0 deletions interfaces/ros1/wavemap_msgs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package wavemap_msgs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.0.1 (2024-08-30)
------------------

2.0.0 (2024-08-12)
------------------
* New features
Expand Down
2 changes: 1 addition & 1 deletion interfaces/ros1/wavemap_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<package format="2">
<name>wavemap_msgs</name>
<version>2.0.0</version>
<version>2.0.1</version>
<description>Message definitions for wavemap's ROS interfaces.</description>

<maintainer email="[email protected]">Victor Reijgwart</maintainer>
Expand Down
5 changes: 5 additions & 0 deletions interfaces/ros1/wavemap_ros/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog for package wavemap_ros
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.0.1 (2024-08-30)
------------------
* Fix outdated Livox callback code
* Contributors: Zhihuan Hu, Victor Reijgwart

2.0.0 (2024-08-12)
------------------
* New features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ bool PointcloudTopicInput::registerCallback(PointcloudTopicType type,
case PointcloudTopicType::kLivox:
#ifdef LIVOX_AVAILABLE
// clang-format off
registrar(static_cast<void(PointcloudInput::*)(
registrar(static_cast<void(PointcloudTopicInput::*)(
const livox_ros_driver2::CustomMsg&)>(
&PointcloudInput::callback));
&PointcloudTopicInput::callback));
// clang-format on
return true;
#else
Expand Down
2 changes: 1 addition & 1 deletion interfaces/ros1/wavemap_ros/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<package format="2">
<name>wavemap_ros</name>
<version>2.0.0</version>
<version>2.0.1</version>
<description>ROS interface for wavemap.</description>

<maintainer email="[email protected]">Victor Reijgwart</maintainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void PointcloudTopicInput::callback(
}

#ifdef LIVOX_AVAILABLE
void PointcloudInput::callback(
void PointcloudTopicInput::callback(
const livox_ros_driver2::CustomMsg& pointcloud_msg) {
ProfilerZoneScoped;
// Skip empty clouds
Expand All @@ -165,8 +165,8 @@ void PointcloudInput::callback(
std::string sensor_frame_id = config_.sensor_frame_id.empty()
? pointcloud_msg.header.frame_id
: config_.sensor_frame_id;
StampedPointcloud stamped_pointcloud{stamp_nsec, std::move(sensor_frame_id),
pointcloud_msg.points.size()};
undistortion::StampedPointcloud stamped_pointcloud{
stamp_nsec, std::move(sensor_frame_id), pointcloud_msg.points.size()};
for (const auto& point : pointcloud_msg.points) {
stamped_pointcloud.emplace(point.x, point.y, point.z, point.offset_time);
}
Expand Down
3 changes: 3 additions & 0 deletions interfaces/ros1/wavemap_ros_conversions/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package wavemap_ros_conversions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.0.1 (2024-08-30)
------------------

2.0.0 (2024-08-12)
------------------
* New features
Expand Down
2 changes: 1 addition & 1 deletion interfaces/ros1/wavemap_ros_conversions/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<package format="2">
<name>wavemap_ros_conversions</name>
<version>2.0.0</version>
<version>2.0.1</version>
<description>Conversions between wavemap and ROS types.</description>

<maintainer email="[email protected]">Victor Reijgwart</maintainer>
Expand Down
3 changes: 3 additions & 0 deletions interfaces/ros1/wavemap_rviz_plugin/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package wavemap_rviz_plugin
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.0.1 (2024-08-30)
------------------

2.0.0 (2024-08-12)
------------------
* New features
Expand Down
2 changes: 1 addition & 1 deletion interfaces/ros1/wavemap_rviz_plugin/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<package format="2">
<name>wavemap_rviz_plugin</name>
<version>2.0.0</version>
<version>2.0.1</version>
<description>Plugin to interactively visualize maps published in wavemap's
native format.
</description>
Expand Down
3 changes: 3 additions & 0 deletions library/cpp/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package wavemap
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.0.1 (2024-08-30)
------------------

2.0.0 (2024-08-12)
------------------
* New features
Expand Down
2 changes: 1 addition & 1 deletion library/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(wavemap VERSION 2.0.0 LANGUAGES CXX)
project(wavemap VERSION 2.0.1 LANGUAGES CXX)

# General options
cmake_policy(SET CMP0077 NEW)
Expand Down
3 changes: 3 additions & 0 deletions tooling/packages/catkin_setup/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package catkin_setup
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.0.1 (2024-08-30)
------------------

2.0.0 (2024-08-12)
------------------

Expand Down
2 changes: 1 addition & 1 deletion tooling/packages/catkin_setup/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<package format="2">
<name>catkin_setup</name>
<version>2.0.0</version>
<version>2.0.1</version>
<description>Dummy package to make it easy to setup the workspace and generate the setup.[sh|bash|zsh] scripts in CI.</description>

<maintainer email="[email protected]">Victor Reijgwart</maintainer>
Expand Down
9 changes: 6 additions & 3 deletions tooling/scripts/prepare_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def prepare_release_files():
for pkg in packages:
# Package variables
pkg_debug_name = f'{pkg.type} package {pkg.name}'
pkg_all_paths = pkg.old_paths.append(pkg.current_path)
pkg_all_paths = pkg.old_paths + [pkg.current_path]
print(f'Processing {pkg_debug_name}')

pkg_changelog_path = os.path.join(pkg.current_path, "CHANGELOG.rst")
Expand Down Expand Up @@ -167,8 +167,11 @@ def prepare_release_files():
# Append the new section, below the changelog title
changelog.insert(4, section_title + os.linesep)
changelog.insert(5, section_title_underline + os.linesep)
changelog.insert(6, section_changelog + os.linesep)
changelog.insert(7, section_contributors + 2 * os.linesep)
if len(commit_msgs) == 0:
changelog.insert(6, os.linesep)
else:
changelog.insert(6, section_changelog + os.linesep)
changelog.insert(7, section_contributors + 2 * os.linesep)

# Write the updated content back to the file
with open(pkg_changelog_path, "w") as f:
Expand Down

0 comments on commit 964e740

Please sign in to comment.