feat(lcmt_generators) : Add standard LCM generators for C3 Output and Contact Descriptions#10
feat(lcmt_generators) : Add standard LCM generators for C3 Output and Contact Descriptions#10
Conversation
57cd440 to
1bcc69c
Compare
3c1e562 to
bbd5e25
Compare
1bcc69c to
e1f2869
Compare
|
I'm confused about why we use yaml string here instead of normal yaml. |
|
Pls remove commented codes. |
|
Missing documentation |
|
We'll need some documentation for input ports and output ports. |
e1f2869 to
720d12b
Compare
|
Pls add documentation. |
|
Using the difference in dimension of lambda and number of force basis to determine the contact model is generally not a safe way. Could we store the type of contact model in the |
a1a373d to
80dd8e5
Compare
|
FYI, building with different drake versions doesnt seem to be an issue so far between dairlib and c3. |
Meow404
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 19 files reviewed, 6 unresolved discussions (waiting on @xuanhien070594)
systems/publishers/force_publisher.h line 16 at r1 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
Missing documentation
Done.
systems/publishers/force_publisher.cc line 16 at r1 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
We'll need some documentation for input ports and output ports.
Done.
systems/publishers/output_publisher.h line 46 at r1 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
Pls remove commented codes.
Done.
systems/publishers/output_publisher.h line 17 at r2 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
Pls add documentation.
Done.
|
Should the name be |
cff8615 to
0ff39d9
Compare
0ff39d9 to
207d6ab
Compare
|
Should we add few lines in documentation to tell the user which forces we are calculating (i.e forces that object A acts on object B or object B acts on object A)? |
|
Previously, xuanhien070594 (Hien Bui) wrote…
Since you're using minus sign here, it seems that we're calculating the forces that object A acting on object B. |
24d08ee to
7f46c87
Compare
7f46c87 to
178616e
Compare
5907d01 to
f1fb486
Compare
Meow404
left a comment
There was a problem hiding this comment.
@Meow404 made 9 comments and resolved 2 discussions.
Reviewable status: 16 of 45 files reviewed, 9 unresolved discussions (waiting on Meow404 and xuanhien070594).
multibody/geom_geom_collider.cc line 197 at r5 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
Since you're using minus sign here, it seems that we're calculating the forces that object A acting on object B.
Done.
multibody/lcs_factory.cc line 377 at r5 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
Can we reuse the contact results from
LCSFactory::ComputeContactJacobian? I think we might want to store a list ofGeomGeomColliderinsideLCSFactoryclass, so we can quickly get the contact result without recalculation. What do you think?
I've made the change, but maybe there's a better solution? Currently there does not seem to be much overhead (or calculations) in inotializing the geomgeomcollider.
multibody/lcs_factory.cc line 417 at r5 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
I think it is worth to mention somewhere in the documentation of
LCSFactoryabout how we stack the contact forces.For example,
Stewart-Trinklecurrently stacks them as[slack_1, slack_2, ..., slack N, normal_1, normal_2, ..., normal_N, tangential_1_1, ..., tangential_1_4, ... tangential_N_1, ..., tangential_N_4]
Done.
systems/lcmt_generators/c3_trajectory_generator_config.h line 12 at r5 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
Could we add some comments to clarify why do we need
startandend?My understanding is that we need those to extract a portion of
statevector.
Done.
core/configs/solve_options_default.hpp line 3 at r1 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
I'm confused about why we use yaml string here instead of normal yaml.
When importing C3, there was an issues using the relative path of a file. This was meant to be temporary until I find a better solution.
multibody/test/lcs_factory_test.cc line 185 at r5 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
Those tests are commented out. We can remove them if they are no longer needed.
Done.
lcmtypes/lcmt_forces.lcm line 1 at r3 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
Should the name be
lcmt_contact_forces.lcm?
Done.`
systems/lcmt_generators/contact_force_generator.cc line 63 at r5 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
I think we're not setting the force to zero right? We just ignore it.
Done.
systems/publishers/force_publisher.cc line 46 at r2 (raw file):
Previously, xuanhien070594 (Hien Bui) wrote…
Using the difference in dimension of lambda and number of force basis to determine the contact model is generally not a safe way. Could we store the type of contact model in the
C3Solution?
Done.`
340a7bc to
194a8c9
Compare
194a8c9 to
1ab4ccd
Compare
Fixes : #11, #36
Support for : DAIRLab/dairlib#376
This change is