File tree 4 files changed +6
-8
lines changed
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 17
17
18
18
#include < motion_utils/trajectory/trajectory.hpp>
19
19
#include < rclcpp/rclcpp.hpp>
20
+ #include < rosbag2_cpp/reader.hpp>
20
21
#include < tier4_autoware_utils/geometry/geometry.hpp>
21
22
#include < tier4_autoware_utils/math/unit_conversion.hpp>
22
23
36
37
#include < pcl_conversions/pcl_conversions.h>
37
38
#include < tf2_ros/buffer.h>
38
39
#include < tf2_ros/transform_listener.h>
39
- #include < rosbag2_cpp/reader.hpp>
40
40
41
41
#include < memory>
42
42
#include < mutex>
Original file line number Diff line number Diff line change 3
3
<node_container pkg =" rclcpp_components" exec =" component_container_mt" name =" reaction_analyzer_container" namespace =" " args =" " output =" screen" >
4
4
<composable_node pkg =" reaction_analyzer" plugin =" reaction_analyzer::ReactionAnalyzerNode" name =" reaction_analyzer" namespace =" " >
5
5
<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"/>-->
7
7
<remap from =" output/objects" to =" /perception/object_recognition/objects" />
8
8
<remap from =" output/initialpose" to =" /initialpose" />
9
9
<remap from =" output/goal" to =" /planning/mission_planning/goal" />
Original file line number Diff line number Diff line change 23
23
<depend >eigen</depend >
24
24
<depend >libpcl-all-dev</depend >
25
25
<depend >motion_utils</depend >
26
- <depend >rosbag2_cpp</depend >
27
26
<depend >pcl_conversions</depend >
28
27
<depend >pcl_ros</depend >
29
28
<depend >rclcpp</depend >
30
29
<depend >rclcpp_components</depend >
30
+ <depend >rosbag2_cpp</depend >
31
31
<depend >sensor_msgs</depend >
32
32
<depend >tf2</depend >
33
- <depend >tf2_ros</depend >
34
33
<depend >tf2_eigen</depend >
35
34
<depend >tf2_geometry_msgs</depend >
35
+ <depend >tf2_ros</depend >
36
36
<depend >tier4_autoware_utils</depend >
37
37
38
38
<test_depend >ament_cmake_ros</test_depend >
Original file line number Diff line number Diff line change @@ -108,11 +108,10 @@ void ReactionAnalyzerNode::pointcloud2OutputCallback(
108
108
mutex_.lock ();
109
109
auto variant = message_buffers_[node_name];
110
110
const auto current_odometry_ptr = odometry_;
111
- // const auto is_spawned = spawn_cmd_time_;
111
+ // const auto is_spawned = spawn_cmd_time_;
112
112
mutex_.unlock ();
113
113
if (!current_odometry_ptr) return ;
114
114
115
-
116
115
if (!std::holds_alternative<PointCloud2Buffer>(variant)) {
117
116
// If the variant doesn't hold a Trajectory message yet, initialize it
118
117
PointCloud2Buffer buffer (std::nullopt);
@@ -171,7 +170,6 @@ void ReactionAnalyzerNode::predictedObjectsOutputCallback(
171
170
if (searchPredictedObjectsNearEntity (*msg_ptr)) {
172
171
std::get<PredictedObjectsBuffer>(variant) = *msg_ptr;
173
172
std::cout << " Reacted " << node_name << std::endl;
174
-
175
173
}
176
174
// if (!is_spawned) return;
177
175
mutex_.lock ();
@@ -465,7 +463,7 @@ void ReactionAnalyzerNode::onTimer()
465
463
*msg_cloud_pub = *msg_cloud_with_obj_;
466
464
msg_cloud_pub->header .stamp = this ->now ();
467
465
pub_pointcloud_->publish (std::move (msg_cloud_pub));
468
- } else {
466
+ } else {
469
467
std::unique_ptr<PointCloud2> msg_cloud_pub = std::make_unique<PointCloud2>();
470
468
*msg_cloud_pub = *msg_cloud_empty_;
471
469
msg_cloud_pub->header .stamp = this ->now ();
You can’t perform that action at this time.
0 commit comments