@@ -99,22 +99,6 @@ void export_solvers(py::module& m) {
9999	    .property <double >(" max_step"  , " float: Limit any (single) joint change between two waypoints to this amount"  )
100100	    .def (py::init<>());
101101
102- 	const  moveit::core::CartesianPrecision default_precision;
103- 	py::class_<moveit::core::CartesianPrecision>(m, " CartesianPrecision"  , " precision for Cartesian interpolation"  )
104- 	    .def (py::init ([](double  translational, double  rotational, double  max_resolution) {
105- 		         return  new  moveit::core::CartesianPrecision{ translational, rotational, max_resolution };
106- 	         }),
107- 	         py::arg (" translational"  ) = default_precision.translational ,
108- 	         py::arg (" rotational"  ) = default_precision.rotational ,
109- 	         py::arg (" max_resolution"  ) = default_precision.max_resolution )
110- 	    .def_readwrite (" translational"  , &moveit::core::CartesianPrecision::translational)
111- 	    .def_readwrite (" rotational"  , &moveit::core::CartesianPrecision::rotational)
112- 	    .def_readwrite (" max_resolution"  , &moveit::core::CartesianPrecision::max_resolution)
113- 	    .def (" __str__"  , [](const  moveit::core::CartesianPrecision& self) {
114- 		    return  fmt::format (" CartesianPrecision(translational={}, rotational={}, max_resolution={}"  ,
115- 		                       self.translational , self.rotational , self.max_resolution );
116- 	    });
117- 
118102	properties::class_<CartesianPath, PlannerInterface>(m, " CartesianPath"  , R"( 
119103			Perform linear interpolation between Cartesian poses. 
120104		 	Fails on collision along the interpolation path. There is no obstacle avoidance. :: 
@@ -124,12 +108,15 @@ void export_solvers(py::module& m) {
124108				# Instantiate Cartesian-space interpolation planner 
125109				cartesianPlanner = core.CartesianPath() 
126110				cartesianPlanner.step_size = 0.01 
127- 				cartesianPlanner.precision.translational  = 0.001  
111+ 				cartesianPlanner.jump_threshold  = 0.0  # effectively disable jump threshold.  
128112		)"  )
129113	    .property <double >(" step_size"  , " float: Limit the Cartesian displacement between consecutive waypoints " 
130114	                                   " In contrast to joint-space interpolation, the Cartesian planner can also " 
131115	                                   " succeed when only a fraction of the linear path was feasible."  )
132- 	    .property <moveit::core::CartesianPrecision>(" precision"  , " Cartesian interpolation precision"  )
116+ 	    .property <double >(
117+ 	        " jump_threshold"  ,
118+ 	        " float: Limit joint displacement between consecutive waypoints, thus preventing jumps in joint space. " 
119+ 	        " This values specifies the fraction of mean acceptable joint motion per step."  )
133120	    .property <double >(" min_fraction"  , " float: Fraction of overall distance required to succeed."  )
134121	    .def (py::init<>());
135122
0 commit comments