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

[melodic] Fix deferred robot model loading #2245

Merged
merged 3 commits into from
Aug 19, 2020

Conversation

rhaschke
Copy link
Contributor

Cherry-pick of #2244.

rhaschke and others added 3 commits August 10, 2020 22:14
This reverts commit 4e72ac5
as the delayed loading results in link properties NOT being loaded.

Additionally, this partially applies moveit#1625, namely hiding the robot until
the first message was received.
This is a (in my opinion) rather dirty workaround because RViz
enables Displays systematically *before* loading their properties.

So the patch loads the required property a second time *before* everything else.

Assuming this ever changes we can remove this code again.

A Display's "enabled" state is encoded in a boolean property the Display inherits from.
The way loading works (recursively running through the properties)
this special property is loaded first and triggers onEnable because
of the Property's changed() signal.

A second "Enabled" property exists in RViz's Displays but does not change behavior at all.
@codecov
Copy link

codecov bot commented Aug 13, 2020

Codecov Report

Merging #2245 into melodic-devel will increase coverage by 0.59%.
The diff coverage is n/a.

Impacted file tree graph

@@                Coverage Diff                @@
##           melodic-devel    #2245      +/-   ##
=================================================
+ Coverage          51.18%   51.77%   +0.59%     
=================================================
  Files                314      318       +4     
  Lines              24210    24432     +222     
=================================================
+ Hits               12391    12650     +259     
+ Misses             11819    11782      -37     
Impacted Files Coverage Δ
moveit_ros/moveit_servo/src/collision_check.cpp 78.16% <0.00%> (-2.36%) ⬇️
...traint_samplers/src/constraint_sampler_manager.cpp 87.73% <0.00%> (-0.95%) ⬇️
...g_scene_interface/src/planning_scene_interface.cpp 36.41% <0.00%> (-0.95%) ⬇️
...ematics_plugin/src/chainiksolver_vel_mimic_svd.cpp 60.46% <0.00%> (-0.90%) ⬇️
...ics_plugin_loader/src/kinematics_plugin_loader.cpp 60.54% <0.00%> (-0.69%) ⬇️
..._core/collision_detection/src/collision_matrix.cpp 48.27% <0.00%> (-0.59%) ⬇️
...homp/chomp_motion_planner/src/chomp_trajectory.cpp 45.51% <0.00%> (-0.38%) ⬇️
...ning/robot_model_loader/src/robot_model_loader.cpp 77.77% <0.00%> (-0.25%) ⬇️
...tance_field/src/collision_robot_distance_field.cpp 66.92% <0.00%> (-0.13%) ⬇️
...cessing/src/time_optimal_trajectory_generation.cpp 75.65% <0.00%> (-0.12%) ⬇️
... and 88 more

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 2117c5f...1a64c1b. Read the comment docs.

@rhaschke rhaschke merged commit f28379a into moveit:melodic-devel Aug 19, 2020
@rhaschke rhaschke deleted the fix-deferred-load-melodic branch August 19, 2020 13:08
rhaschke added a commit to ubi-agni/moveit that referenced this pull request Sep 1, 2020
... to actually show the robot of the RobotStateDisplay (which is hidden initially since moveit#2245).
pull bot pushed a commit to shadow-robot/moveit that referenced this pull request Sep 3, 2020
... to actually show the robot of the RobotStateDisplay (which is hidden initially since moveit#2245).
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.

None yet

2 participants