Conversation
LCOV of commit
|
6cdfc1d to
1f67187
Compare
1f67187 to
6add83d
Compare
6add83d to
3e95b11
Compare
|
What if the users use different |
There was a problem hiding this comment.
I have only one comment. Otherwise, LGTM.
@xuanhien070594 reviewed 19 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Meow404).
Meow404
left a comment
There was a problem hiding this comment.
@Meow404 made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on xuanhien070594).
multibody/lcs_factory.cc line 820 at r1 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
What if the users use different
plantthan the one passed toLCSFactoryconstructor?
I think we can create an utility function that is separate fromLCSFactoryclass.
Also, do we have way to cache the computed values (expanded configs, n_contacts) as we don't want to recompute them?
- right now there isn't anything preventing the user to using a different plant. Isnt this desirable?
- Does'nt LCSFactory determine how many lamnda's will be present in the LCS?
- I had tried working on caching, the issue is then I realized I need a mechanism to check if variables use to calculate the values may have changed over time. Not sure if this added overhead is worth the change. eg. for num_of_friction_direction, once the user calls
ResolveNumFrictionDirectionsand we cache the value, then we need to monitorcontact_model,num\_friction\_directions\_per\_contactandnum\_friction\_directionsfor changes.
|
Previously, Meow404 (Thomas Stephen Felix) wrote…
That's fair, but if the users pass a plant that is different from the one in the constructor without noticing, the results might cause confusion. Code snippet: static int ComputeNumContactVariables(
const LCSFactoryOptions& options,
const MultibodyPlant<double>* plant);
int LCSFactory::GetNumContactVariables() const {
return ComputeNumContactVariable(options_, plant_);
} |
Meow404
left a comment
There was a problem hiding this comment.
@Meow404 made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on xuanhien070594).
multibody/lcs_factory.cc line 820 at r1 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
That's fair, but if the users pass a plant that is different from the one in the constructor without noticing, the results might cause confusion.
I understand that we want to keep this function as static, so users can use without constructingLCSFactoryobject, so do you think we should provide another function that use internal options and plant
Done.
xuanhien070594
left a comment
There was a problem hiding this comment.
@xuanhien070594 reviewed 2 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Meow404).
This change is