Skip to content

Commit cfb14b0

Browse files
committed
Remove timestamp setting from message headers in rosfrontend callbacks
1 parent bc7f8cf commit cfb14b0

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

pronto_ros/include/pronto_ros/ros_frontend.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ void ROSFrontEnd::initCallback(std::shared_ptr<MsgT> msg, const SensorId& sensor
265265
}
266266
if(initialized_list_.count(sensor_id) > 0 && !initialized_list_[sensor_id])
267267
{
268-
msg->header.set__stamp(nh_->get_clock()->now());
269268
initialized_list_[sensor_id] = static_cast<SensingModule<MsgT>*>(init_modules_[sensor_id])->processMessageInit(
270269
msg.get(),
271270
initialized_list_,
@@ -311,7 +310,6 @@ void ROSFrontEnd::callback(std::shared_ptr<MsgT> msg, const SensorId& sensor_id)
311310
// appropriate casting to the right type and call to the process message
312311
// function to get the update
313312
// Record start time
314-
msg->header.set__stamp(nh_->get_clock()->now());
315313
#if DEBUG_MODE
316314
auto start = std::chrono::high_resolution_clock::now();
317315
#endif
@@ -451,7 +449,6 @@ void ROSFrontEnd::callback(std::shared_ptr<MsgT> msg, const SensorId& sensor_id)
451449
template <class PrimaryMsgT, class SecondaryMsgT>
452450
void ROSFrontEnd::secondaryCallback(std::shared_ptr<SecondaryMsgT > msg, const SensorId& sensor_id)
453451
{
454-
msg->header.set__stamp(nh_->get_clock()->now());
455452
auto a = dynamic_cast<DualSensingModule<PrimaryMsgT,SecondaryMsgT>*>(static_cast<SensingModule<PrimaryMsgT>*>(active_modules_[sensor_id]));
456453
a->processSecondaryMessage(*msg);
457454
}

0 commit comments

Comments
 (0)