Fix pick-place-demo: Correctly set hand group (#205)

This commit is contained in:
Robert Haschke 2020-09-07 15:14:08 +02:00 committed by GitHub
parent c510c6b5b6
commit b0b4db4bc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,7 @@ void PickPlaceTask::init() {
***************************************************/
{
auto stage = std::make_unique<stages::MoveTo>("close hand", sampling_planner);
stage->properties().property("group").configureInitFrom(Stage::PARENT, hand_group_name_);
stage->setGroup(hand_group_name_);
stage->setGoal(hand_close_pose_);
grasp->insert(std::move(stage));
}
@ -357,7 +357,7 @@ void PickPlaceTask::init() {
*****************************************************/
{
auto stage = std::make_unique<stages::MoveTo>("open hand", sampling_planner);
stage->properties().property("group").configureInitFrom(Stage::PARENT, hand_group_name_);
stage->setGroup(hand_group_name_);
stage->setGoal(hand_open_pose_);
place->insert(std::move(stage));
}