Skip to content

Commit

Permalink
Fix usage of FootSteps_Planner
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet committed Jan 31, 2024
1 parent ed1fee6 commit cc7bbca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/ExternalFootstepPlanner/src/HybridPlanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void HybridPlanner::configure(const mc_rtc::Configuration & config)
auto conf = config("HybridPlanner", mc_rtc::Configuration{});
conf.load(ctl_.config()("HybridPlanner"));
mc_rtc::log::info("[HybridPlanner] Requesting configuration: {}", conf.dump(true));
ctl_.datastore().assign<mc_rtc::Configuration>("footsteps_planner::planner_config", conf);
ctl_.datastore().call<void, const mc_rtc::Configuration &>("footsteps_planner::configure", conf);
Tp_ = conf("Tp");
delta_ = conf("delta");
}
Expand Down
7 changes: 5 additions & 2 deletions src/states/Initial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,12 @@ void states::Initial::internalReset()
{
auto X_0_fb = ctl.supportContact().robotTransform(ctl.controlRobot());
ctl.controlRobot().posW(X_0_fb);
ctl.controlRobot().velW(sva::MotionVecd::Zero());
ctl.realRobot().posW(X_0_fb);
ctl.realRobot().velW(sva::MotionVecd::Zero());
if(ctl.controlRobot().mb().joint(0).dof() == 6)
{
ctl.controlRobot().velW(sva::MotionVecd::Zero());
ctl.realRobot().velW(sva::MotionVecd::Zero());
}
}

// (2) update contact frames to coincide with surface ones
Expand Down

0 comments on commit cc7bbca

Please sign in to comment.