@@ -709,7 +709,7 @@ func (c *Constraints) GetCollisionSpecification() []CollisionSpecification {
709
709
type fsPathConstraint struct {
710
710
metricMap map [string ]ik.StateMetric
711
711
constraintMap map [string ]StateConstraint
712
- goalMap PathState
712
+ goalMap referenceframe. FrameSystemPoses
713
713
fs referenceframe.FrameSystem
714
714
}
715
715
@@ -754,8 +754,8 @@ func (fpc *fsPathConstraint) metric(state *ik.StateFS) float64 {
754
754
755
755
func newFsPathConstraintSeparatedLinOrientTol (
756
756
fs referenceframe.FrameSystem ,
757
- startCfg map [ string ][] referenceframe.Input ,
758
- from , to PathState ,
757
+ startCfg referenceframe.FrameSystemInputs ,
758
+ from , to referenceframe. FrameSystemPoses ,
759
759
constructor func (spatial.Pose , spatial.Pose , float64 , float64 ) (StateConstraint , ik.StateMetric ),
760
760
linTol , orientTol float64 ,
761
761
) (* fsPathConstraint , error ) {
@@ -786,8 +786,8 @@ func newFsPathConstraintSeparatedLinOrientTol(
786
786
787
787
func newFsPathConstraintTol (
788
788
fs referenceframe.FrameSystem ,
789
- startCfg map [ string ][] referenceframe.Input ,
790
- from , to PathState ,
789
+ startCfg referenceframe.FrameSystemInputs ,
790
+ from , to referenceframe. FrameSystemPoses ,
791
791
constructor func (spatial.Pose , spatial.Pose , float64 ) (StateConstraint , ik.StateMetric ),
792
792
tolerance float64 ,
793
793
) (* fsPathConstraint , error ) {
@@ -821,8 +821,8 @@ func newFsPathConstraintTol(
821
821
// their respective orientations, as well as a metric which returns the distance to that valid region.
822
822
func CreateSlerpOrientationConstraintFS (
823
823
fs referenceframe.FrameSystem ,
824
- startCfg map [ string ][] referenceframe.Input ,
825
- from , to PathState ,
824
+ startCfg referenceframe.FrameSystemInputs ,
825
+ from , to referenceframe. FrameSystemPoses ,
826
826
tolerance float64 ,
827
827
) (StateFSConstraint , ik.StateFSMetric , error ) {
828
828
constraintInternal , err := newFsPathConstraintTol (fs , startCfg , from , to , NewSlerpOrientationConstraint , tolerance )
@@ -837,8 +837,8 @@ func CreateSlerpOrientationConstraintFS(
837
837
// line segment between their respective positions, as well as a metric which returns the distance to that valid region.
838
838
func CreateLineConstraintFS (
839
839
fs referenceframe.FrameSystem ,
840
- startCfg map [ string ][] referenceframe.Input ,
841
- from , to PathState ,
840
+ startCfg referenceframe.FrameSystemInputs ,
841
+ from , to referenceframe. FrameSystemPoses ,
842
842
tolerance float64 ,
843
843
) (StateFSConstraint , ik.StateFSMetric , error ) {
844
844
// Need to define a constructor here since NewLineConstraint takes r3.Vectors, not poses
@@ -857,8 +857,8 @@ func CreateLineConstraintFS(
857
857
// orientation deviation measured by norm of the R3AA orientation difference to the slerp path between start/goal orientations.
858
858
func CreateAbsoluteLinearInterpolatingConstraintFS (
859
859
fs referenceframe.FrameSystem ,
860
- startCfg map [ string ][] referenceframe.Input ,
861
- from , to PathState ,
860
+ startCfg referenceframe.FrameSystemInputs ,
861
+ from , to referenceframe. FrameSystemPoses ,
862
862
linTol , orientTol float64 ,
863
863
) (StateFSConstraint , ik.StateFSMetric , error ) {
864
864
constraintInternal , err := newFsPathConstraintSeparatedLinOrientTol (
@@ -881,8 +881,8 @@ func CreateAbsoluteLinearInterpolatingConstraintFS(
881
881
// from start to goal.
882
882
func CreateProportionalLinearInterpolatingConstraintFS (
883
883
fs referenceframe.FrameSystem ,
884
- startCfg map [ string ][] referenceframe.Input ,
885
- from , to PathState ,
884
+ startCfg referenceframe.FrameSystemInputs ,
885
+ from , to referenceframe. FrameSystemPoses ,
886
886
linTol , orientTol float64 ,
887
887
) (StateFSConstraint , ik.StateFSMetric , error ) {
888
888
constraintInternal , err := newFsPathConstraintSeparatedLinOrientTol (
0 commit comments