Skip to content

Commit 5d693bc

Browse files
style(pre-commit): autofix
1 parent ae041f9 commit 5d693bc

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

tools/reaction_analyzer/include/reaction_analyzer_node.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include <motion_utils/trajectory/trajectory.hpp>
1919
#include <rclcpp/rclcpp.hpp>
20+
#include <rosbag2_cpp/reader.hpp>
2021
#include <tier4_autoware_utils/geometry/geometry.hpp>
2122
#include <tier4_autoware_utils/math/unit_conversion.hpp>
2223

@@ -36,7 +37,6 @@
3637
#include <pcl_conversions/pcl_conversions.h>
3738
#include <tf2_ros/buffer.h>
3839
#include <tf2_ros/transform_listener.h>
39-
#include <rosbag2_cpp/reader.hpp>
4040

4141
#include <memory>
4242
#include <mutex>

tools/reaction_analyzer/launch/reaction_analyzer.launch.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<node_container pkg="rclcpp_components" exec="component_container_mt" name="reaction_analyzer_container" namespace="" args="" output="screen">
44
<composable_node pkg="reaction_analyzer" plugin="reaction_analyzer::ReactionAnalyzerNode" name="reaction_analyzer" namespace="">
55
<param from="$(var reaction_analyzer_param_path)"/>
6-
<!-- <remap from="output/points_raw" to="/perception/obstacle_segmentation/pointcloud"/>-->
6+
<!-- <remap from="output/points_raw" to="/perception/obstacle_segmentation/pointcloud"/>-->
77
<remap from="output/objects" to="/perception/object_recognition/objects"/>
88
<remap from="output/initialpose" to="/initialpose"/>
99
<remap from="output/goal" to="/planning/mission_planning/goal"/>

tools/reaction_analyzer/package.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
<depend>eigen</depend>
2424
<depend>libpcl-all-dev</depend>
2525
<depend>motion_utils</depend>
26-
<depend>rosbag2_cpp</depend>
2726
<depend>pcl_conversions</depend>
2827
<depend>pcl_ros</depend>
2928
<depend>rclcpp</depend>
3029
<depend>rclcpp_components</depend>
30+
<depend>rosbag2_cpp</depend>
3131
<depend>sensor_msgs</depend>
3232
<depend>tf2</depend>
33-
<depend>tf2_ros</depend>
3433
<depend>tf2_eigen</depend>
3534
<depend>tf2_geometry_msgs</depend>
35+
<depend>tf2_ros</depend>
3636
<depend>tier4_autoware_utils</depend>
3737

3838
<test_depend>ament_cmake_ros</test_depend>

tools/reaction_analyzer/src/reaction_analyzer_node.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,10 @@ void ReactionAnalyzerNode::pointcloud2OutputCallback(
108108
mutex_.lock();
109109
auto variant = message_buffers_[node_name];
110110
const auto current_odometry_ptr = odometry_;
111-
// const auto is_spawned = spawn_cmd_time_;
111+
// const auto is_spawned = spawn_cmd_time_;
112112
mutex_.unlock();
113113
if (!current_odometry_ptr) return;
114114

115-
116115
if (!std::holds_alternative<PointCloud2Buffer>(variant)) {
117116
// If the variant doesn't hold a Trajectory message yet, initialize it
118117
PointCloud2Buffer buffer(std::nullopt);
@@ -171,7 +170,6 @@ void ReactionAnalyzerNode::predictedObjectsOutputCallback(
171170
if (searchPredictedObjectsNearEntity(*msg_ptr)) {
172171
std::get<PredictedObjectsBuffer>(variant) = *msg_ptr;
173172
std::cout << "Reacted " << node_name << std::endl;
174-
175173
}
176174
// if (!is_spawned) return;
177175
mutex_.lock();
@@ -465,7 +463,7 @@ void ReactionAnalyzerNode::onTimer()
465463
*msg_cloud_pub = *msg_cloud_with_obj_;
466464
msg_cloud_pub->header.stamp = this->now();
467465
pub_pointcloud_->publish(std::move(msg_cloud_pub));
468-
} else{
466+
} else {
469467
std::unique_ptr<PointCloud2> msg_cloud_pub = std::make_unique<PointCloud2>();
470468
*msg_cloud_pub = *msg_cloud_empty_;
471469
msg_cloud_pub->header.stamp = this->now();

0 commit comments

Comments
 (0)