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