Skip to content

Commit

Permalink
Apply frame_id to all sensors
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Doisy <guillaume.doisy@wyca.fr>
  • Loading branch information
Guillaume Doisy committed Apr 17, 2022
1 parent ad260f0 commit 469f147
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ForceTorqueSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ bool ForceTorqueSensor::Update(const std::chrono::steady_clock::duration &_now)
*msg.mutable_header()->mutable_stamp() = msgs::Convert(_now);
auto frame = msg.mutable_header()->add_data();
frame->set_key("frame_id");
frame->add_value(this->Name());
frame->add_value(this->FrameId());

msgs::Set(msg.mutable_force(), measuredForce);
msgs::Set(msg.mutable_torque(), measuredTorque);
Expand Down
2 changes: 1 addition & 1 deletion src/SegmentationCameraSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ bool SegmentationCameraSensor::Update(
*stamp = msgs::Convert(_now);
auto frame = this->dataPtr->coloredMapMsg.mutable_header()->add_data();
frame->set_key("frame_id");
frame->add_value(this->Name());
frame->add_value(this->FrameId());

this->dataPtr->labelsMapMsg.CopyFrom(this->dataPtr->coloredMapMsg);

Expand Down

0 comments on commit 469f147

Please sign in to comment.