-
Notifications
You must be signed in to change notification settings - Fork 682
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(tier4_planning_rviz_plugin): supress initial warning message #2960
fix(tier4_planning_rviz_plugin): supress initial warning message #2960
Conversation
f4465a9
to
ed133b6
Compare
@purewater0901 cc @yukkysaito Could you approve the PR. |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #2960 +/- ##
=======================================
Coverage 11.95% 11.95%
=======================================
Files 1324 1324
Lines 92109 92106 -3
Branches 24623 24623
=======================================
Hits 11010 11010
+ Misses 69685 69682 -3
Partials 11414 11414
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
: property_drivable_area_view_{"View Drivable Area", true, "", this}, | ||
property_drivable_area_alpha_{"Alpha", 0.999, "", &property_drivable_area_view_}, | ||
property_drivable_area_color_{"Color", QColor(0, 148, 205), "", &property_drivable_area_view_}, | ||
property_drivable_area_width_{"Width", 0.3f, "", &property_drivable_area_view_} | ||
{ | ||
property_drivable_area_view_ = new rviz_common::properties::BoolProperty( | ||
"View Drivable Area", true, "", this, SLOT(updateVisualization())); | ||
property_drivable_area_alpha_ = new rviz_common::properties::FloatProperty( | ||
"Alpha", 0.999, "", property_drivable_area_view_, SLOT(updateVisualization()), this); | ||
property_drivable_area_alpha_->setMin(0.0); | ||
property_drivable_area_alpha_->setMax(1.0); | ||
property_drivable_area_color_ = new rviz_common::properties::ColorProperty( | ||
"Color", QColor(0, 148, 205), "", property_drivable_area_view_, SLOT(updateVisualization()), | ||
this); | ||
property_drivable_area_width_ = new rviz_common::properties::FloatProperty( | ||
"Width", 0.3f, "", property_drivable_area_view_, SLOT(updateVisualization()), this); | ||
property_drivable_area_width_->setMin(0.001); | ||
property_drivable_area_alpha_.setMin(0.0); | ||
property_drivable_area_alpha_.setMax(1.0); | ||
property_drivable_area_width_.setMin(0.001); |
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.
If SLOT(updateVisualization()) is removed
, I think visualization is not updated after parameters are changed.
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.
(Let me unresolve the comment not to forget the reason not to use SLOT(updateVisualization)
🙏 )
I had a discussion with Saito-san internally.
- In order to register the
updateVisualization
function asSLOT
, the class that has the function hasQ_OBJECT
type.- FYI:
Error: Class declaration lacks Q_OBJECT macro.
- FYI:
- The template class cannot have
Q_OBJECT
type.- FYI:
Error: Template classes not supported by Q_OBJECT.
- FYI:
- The derived class from the template class with the
updateVisualiation
function can be compiled, but the runtime errorNo such slot rviz_common::_RosTopicDisplay::updateVisualization()
occurs.
In short, by the change to use a template class in order to make path/trajectory/... implementation common (#2871), now we cannot use SLOT(updateVisualization)
.
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
ed133b6
to
fa6537f
Compare
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.
LGTM
Description
Without this PR, the following warning message is shown on the terminal when launching autoware.launch.xml or turning on the visualization of the path marker.
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.
After all checkboxes are checked, anyone who has write access can merge the PR.