-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix <ignition_frame_id> not working for GpuLidarSensor #218
Fix <ignition_frame_id> not working for GpuLidarSensor #218
Conversation
Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
@@ -256,6 +256,14 @@ bool GpuLidarSensor::Update(const std::chrono::steady_clock::duration &_now) | |||
// Set the time stamp | |||
*this->dataPtr->pointMsg.mutable_header()->mutable_stamp() = | |||
msgs::Convert(_now); | |||
// Set frame_id | |||
for (auto i = 0; i < this->dataPtr->pointMsg.mutable_header()->data_size(); ++i) { | |||
if (this->dataPtr->pointMsg.mutable_header()->data(i).key() == "frame_id" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style nits.
The linter is complaining here:
/github/workspace/src/GpuLidarSensor.cc:260: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/src/GpuLidarSensor.cc:264: Lines should be <= 80 characters long [whitespace/line_length] [2]
Also, please put the {
in a new line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lint is now happy but not so sure about the formating
Signed-off-by: Guillaume Doisy <[email protected]>
6bf97e8
to
ad8c09d
Compare
Codecov Report
@@ Coverage Diff @@
## ign-sensors6 #218 +/- ##
================================================
+ Coverage 72.55% 80.00% +7.44%
================================================
Files 33 1 -32
Lines 3094 15 -3079
================================================
- Hits 2245 12 -2233
+ Misses 849 3 -846 Continue to review full report at Codecov.
|
changes look good to me. Not sure why some rendering tests on Jammy CI is failing but they do not look related. |
🦟 Bug fix
Fixes #217
Additionally it seems that frame_id was not also applied for ForceTorqueSensor and SegmentationCameraSensor, so fixed too.
Summary
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.