0

There do not seem to be analogous setters. If I want to fill in the relevant pieces of an array, is there an interface for doing that?

2 Answers2

0

Three ways of doing this:

  1. Using the joint specific APIs as in the example here.
  2. For free bodies you can use the plant's API as here.
  3. If you know what you are doing, you can play with the state vector as done here.
Alejandro
  • 1,064
  • 1
  • 8
  • 22
0

I added methods to provide exactly this functionality in this PR: https://github.com/RobotLocomotion/drake/pull/9503