Fix contact points#5974
Merged
BenjaminDeleze merged 4 commits intomasterfrom Mar 9, 2023
Merged
Conversation
added 2 commits
March 8, 2023 16:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I found three issues with contact points:
wb_supervisor_node_enable_contact_points_tracking, awb_supervisor_node_enable_contact_points_trackingorwb_supervisor_node_disable_contact_points_trackingcommand was sent at every timeStep. It was because we were not resetting the right boolean. This issue was present since this feature was introduced, but it was only recently made visible because of new warning messages (Improve enable/disable pose tracking API function #5638).include_descendantsof thewb_supervisor_node_disable_contact_points_trackingfunction.solidand theinclude_descendantsparameters to disable the tracking in the Webots side:webots/src/webots/nodes/utils/WbSupervisorUtilities.cpp
Line 1286 in d995dbc
wb_supervisor_node_enable_contact_point_trackingwithinclude_descendants= True, then it is not possible to disable it later (and worse we risk to disable the tracking of the same solid but without the descendantsinclude_descendantsparameter also for theenableContactPointsTrackingwhich is a loss of functionality (but does not seem new):webots/src/controller/cpp/Node.cpp
Line 135 in d995dbc
@omichel do you have an idea of why you wanted to remove the
include_descendantsparameter?API/contact_points_and_center_of_massissues a lot of warnings but the test still succeed:As discussed, we will not fix the test for now