You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
State, defined here, is a necessary input to the Step function of all plans. However, different types plans clearly need different fields in State. For instance, TaskSpacePlan only needs the current joint angles, whereas many plan types involving tactile sensing requires measurements from the tactile sensors. The proposed solution is to make State virtual, from which new plan types can inherit can implement their own state.
The text was updated successfully, but these errors were encountered:
pangtao22
changed the title
Makcing State abstract\virtual
Making State abstract\virtual
Oct 25, 2021
After discussing with Terry, it turns out that this is not a good idea. It would involve lots of changes to IiwaPlanManager, including a config-file-based function call to construct State and lcm subscriptions to the additional measurements.
The alternative is to subscribe to the additional measurements in the new Plan, and store the latest measurements in local private variables. There will be two Step functions, one that's consistent with the declaration in PlanBase, and another deterministic Step that includes the additional measurements in its list or arguments. The first Step is simply a wrapper around the second.
pangtao22
changed the title
Making State abstract\virtual
Support additional arguments to Plan::Step
Oct 25, 2021
State
, defined here, is a necessary input to theStep
function of all plans. However, different types plans clearly need different fields inState
. For instance,TaskSpacePlan
only needs the current joint angles, whereas many plan types involving tactile sensing requires measurements from the tactile sensors. The proposed solution is to makeState
virtual, from which new plan types can inherit can implement their own state.The text was updated successfully, but these errors were encountered: