@@ -491,7 +491,7 @@ func (vc *VinoCart) Touch(ctx context.Context) error {
491491 _ , err2 := vc .c .Motion .Move (
492492 ctx ,
493493 motion.MoveReq {
494- ComponentName : resource. Name { Name : vc .c .Gripper .Name ().ShortName ()} ,
494+ ComponentName : vc .c .Gripper .Name ().ShortName (),
495495 Destination : goToPose ,
496496 WorldState : worldState ,
497497 },
@@ -549,7 +549,7 @@ func (vc *VinoCart) handoffCupBottleToCupArm(ctx context.Context, worldState *re
549549 _ , err := vc .c .Motion .Move (
550550 ctx ,
551551 motion.MoveReq {
552- ComponentName : resource. Name { Name : vc .c .BottleGripper .Name ().ShortName ()} ,
552+ ComponentName : vc .c .BottleGripper .Name ().ShortName (),
553553 Destination : goToPose ,
554554 WorldState : worldState ,
555555 },
@@ -1000,7 +1000,7 @@ func (vc *VinoCart) doPourMotion(ctx, pourContext context.Context) error {
10001000
10011001 vc .logger .Infof ("going back down" )
10021002
1003- cur , err := vc .c .Motion .GetPose (ctx , resource. Name { Name : bottleName } , "world" , vc .pourExtraFrames , nil )
1003+ cur , err := vc .c .Motion .GetPose (ctx , bottleName , "world" , vc .pourExtraFrames , nil )
10041004 if err != nil {
10051005 return err
10061006 }
@@ -1179,7 +1179,7 @@ func moveWithLinearConstraint(ctx context.Context, m motion.Service, n resource.
11791179 _ , err := m .Move (
11801180 ctx ,
11811181 motion.MoveReq {
1182- ComponentName : resource. Name { Name : n .ShortName ()} ,
1182+ ComponentName : n .ShortName (),
11831183 Destination : p ,
11841184 Constraints : & LinearConstraint ,
11851185 },
@@ -1193,5 +1193,5 @@ func (vc *VinoCart) FindCups(ctx context.Context) ([]*viz.Object, error) {
11931193 return nil , err
11941194 }
11951195
1196- return FilterObjects (objects , vc .conf .CupHeight , vc .conf .CupHeight * .6 , 25 , vc .logger ), nil
1196+ return FilterObjects (objects , vc .conf .CupHeight , vc .conf .cupWidth () , 25 , vc .logger ), nil
11971197}
0 commit comments