@@ -272,6 +272,7 @@ void SubscriberBase::on_trajectory(
272
272
if (zero_vel_idx) {
273
273
RCLCPP_INFO (node_->get_logger (), " %s reacted without published time" , node_name.c_str ());
274
274
// set header time
275
+ // cppcheck-suppress constVariableReference
275
276
auto & buffer = std::get<MessageBuffer>(variant);
276
277
buffer->header .stamp = msg_ptr->header .stamp ;
277
278
buffer->published_stamp = msg_ptr->header .stamp ;
@@ -363,6 +364,7 @@ void SubscriberBase::on_pointcloud(
363
364
if (search_pointcloud_near_pose (pcl_pointcloud, entity_pose_, entity_search_radius_)) {
364
365
RCLCPP_INFO (node_->get_logger (), " %s reacted without published time" , node_name.c_str ());
365
366
// set header time
367
+ // cppcheck-suppress constVariableReference
366
368
auto & buffer = std::get<MessageBuffer>(variant);
367
369
buffer->header .stamp = msg_ptr->header .stamp ;
368
370
buffer->published_stamp = msg_ptr->header .stamp ;
@@ -440,6 +442,7 @@ void SubscriberBase::on_predicted_objects(
440
442
if (search_predicted_objects_near_pose (*msg_ptr, entity_pose_, entity_search_radius_)) {
441
443
RCLCPP_INFO (node_->get_logger (), " %s reacted without published time" , node_name.c_str ());
442
444
// set header time
445
+ // cppcheck-suppress constVariableReference
443
446
auto & buffer = std::get<MessageBuffer>(variant);
444
447
buffer->header .stamp = msg_ptr->header .stamp ;
445
448
buffer->published_stamp = msg_ptr->header .stamp ;
@@ -520,6 +523,7 @@ void SubscriberBase::on_detected_objects(
520
523
if (search_detected_objects_near_pose (output_objs, entity_pose_, entity_search_radius_)) {
521
524
RCLCPP_INFO (node_->get_logger (), " %s reacted without published time" , node_name.c_str ());
522
525
// set header time
526
+ // cppcheck-suppress constVariableReference
523
527
auto & buffer = std::get<MessageBuffer>(variant);
524
528
buffer->header .stamp = msg_ptr->header .stamp ;
525
529
buffer->published_stamp = msg_ptr->header .stamp ;
0 commit comments