Skip to content
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: read float param #1357

Merged

Conversation

storrrrrrrrm
Copy link
Contributor

@storrrrrrrrm storrrrrrrrm commented Jul 15, 2022

Signed-off-by: suchang [email protected]

Description

before:
屏幕截图

after:
image

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

suchang added 2 commits July 15, 2022 15:02
Signed-off-by: suchang <[email protected]>
Signed-off-by: suchang <[email protected]>
@taikitanaka3
Copy link
Contributor

@storrrrrrrrm
is this a fix PR or you want to restrict value to float in this PR?
I think before cases include node_->declare_parameter("z_offset", 2); this change so it should die.
but I think if this change is not included z_offset is read int and cast to float, right?

@codecov
Copy link

codecov bot commented Jul 15, 2022

Codecov Report

Merging #1357 (bb81c61) into main (2a4a37e) will not change coverage.
The diff coverage is 0.00%.

@@          Coverage Diff          @@
##            main   #1357   +/-   ##
=====================================
  Coverage   9.04%   9.04%           
=====================================
  Files       1031    1031           
  Lines      69973   69973           
  Branches   14597   14597           
=====================================
  Hits        6328    6328           
  Misses     58226   58226           
  Partials    5419    5419           
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 9.02% <0.00%> (ø) Carriedforward from 939459c

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...idar_apollo_instance_segmentation/src/detector.cpp 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a4a37e...bb81c61. Read the comment docs.

@storrrrrrrrm
Copy link
Contributor Author

it is a fix,z_offset is defined as a float value, but if you config z_offset=-2.0 in launch.xml,when you

ros2 launch lidar_apollo_instance_segmentation lidar_apollo_instance_segmentation.launch.xml

it crash

@taikitanaka3
Copy link
Contributor

@storrrrrrrrm
image
The sign of z offset is reversed , Do you know better default value? It should be positive or negative both.

Signed-off-by: suchang <[email protected]>
@storrrrrrrrm
Copy link
Contributor Author

@storrrrrrrrm image The sign of z offset is reversed , Do you know better default value? It should be positive or negative both.

-2 is better for default value when you set target_frame='base_link' in launch.xml, it means the height from target_frame to a fake toplidar frame which i think the apollo model trained from.

@storrrrrrrrm storrrrrrrrm changed the title read float param fix: read float param Jul 15, 2022
Copy link
Contributor

@taikitanaka3 taikitanaka3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yukkysaito yukkysaito self-requested a review July 16, 2022 07:09
Copy link
Contributor

@yukkysaito yukkysaito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@taikitanaka3 taikitanaka3 merged commit 9ab2d2f into autowarefoundation:main Jul 18, 2022
@storrrrrrrrm storrrrrrrrm deleted the fix/set_param_float branch July 19, 2022 01:48
yukke42 referenced this pull request in tier4/autoware.universe Aug 9, 2022
* read float param

Signed-off-by: suchang <[email protected]>

* remove cout

Signed-off-by: suchang <[email protected]>

* change default z_offset

Signed-off-by: suchang <[email protected]>

Co-authored-by: suchang <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
* read float param

Signed-off-by: suchang <[email protected]>

* remove cout

Signed-off-by: suchang <[email protected]>

* change default z_offset

Signed-off-by: suchang <[email protected]>

Co-authored-by: suchang <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* read float param

Signed-off-by: suchang <[email protected]>

* remove cout

Signed-off-by: suchang <[email protected]>

* change default z_offset

Signed-off-by: suchang <[email protected]>

Co-authored-by: suchang <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* read float param

Signed-off-by: suchang <[email protected]>

* remove cout

Signed-off-by: suchang <[email protected]>

* change default z_offset

Signed-off-by: suchang <[email protected]>

Co-authored-by: suchang <[email protected]>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
* read float param

Signed-off-by: suchang <[email protected]>

* remove cout

Signed-off-by: suchang <[email protected]>

* change default z_offset

Signed-off-by: suchang <[email protected]>

Co-authored-by: suchang <[email protected]>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
* read float param

Signed-off-by: suchang <[email protected]>

* remove cout

Signed-off-by: suchang <[email protected]>

* change default z_offset

Signed-off-by: suchang <[email protected]>

Co-authored-by: suchang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants