-
Notifications
You must be signed in to change notification settings - Fork 214
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
Increase visual testing stability #344
Conversation
- setPickColor only sets pick color for selection handlers - introduce setColor to actually set the points' colour
Use std::this_thread::sleep_for() instead of rclcpp::WallRate::sleep_for()
The results of the CI suggest that the However, the |
Should I review/merge this as an incremental improvement? Or wait for you to make more changes? Does this address at all the aarch64 failures on our nightly CI job? ros2/ci#211 (comment) |
No, this addresses two issues with visual tests only:
|
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
@@ -101,6 +101,12 @@ void GridCellsDisplay::updateAlpha() | |||
context_->queueRender(); | |||
} | |||
|
|||
void GridCellsDisplay::updateColor() | |||
{ | |||
cloud_->setColor(rviz_common::properties::qtToOgre(color_property_->getColor())); |
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.
Since this change I'm getting a compile error. Is there another repo I need to pull?
/home/developer/workspaces/ros2-dev0/src/ros2/rviz/rviz_default_plugins/src/rviz_default_plugins/displays/grid_cells/grid_cells_display.cpp: In member function ‘void rviz_default_plugins::displays::GridCellsDisplay::updateColor()’:
/home/developer/workspaces/ros2-dev0/src/ros2/rviz/rviz_default_plugins/src/rviz_default_plugins/displays/grid_cells/grid_cells_display.cpp:106:11: error: ‘using element_type = class rviz_rendering::PointCloud {aka class rviz_rendering::PointCloud}’ has no member named ‘setColor’; did you mean ‘setPickColor’?
cloud_->setColor(rviz_common::properties::qtToOgre(color_property_->getColor()));
^~~~~~~~
setPickColor
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.
What do you mean? It's passing on CI AFAIK.
In general, I wouldn't expect anything to work without all the repositories in the ros2.repos
file being up-to-date.
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.
The function was introduced in rviz_rendering::PointCloud
in rviz_rendering
with this PR. So if you recompile this repository, it should be fine.
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.
The issue persisted after deleting build/rviz*
and install/rviz*
and building with --packages-above rcl
. However, it is gone after deleting the entire build
and install
folders and rebuilding everything.
I don't know what happened. It's almost like there is a missing build_depend
, but I do see it in the package.xml
rviz/rviz_default_plugins/package.xml
Line 35 in 993d856
<depend>rviz_rendering</depend> |
This PR stabilizes the visual tests for the
ImageDisplay
and theGridCellsDisplay
.Also discussed here: ros2/ci#211 (comment)