@@ -97,22 +97,6 @@ void export_solvers(py::module& m) {
97
97
.property <double >(" max_step" , " float: Limit any (single) joint change between two waypoints to this amount" )
98
98
.def (py::init<>());
99
99
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
-
116
100
properties::class_<CartesianPath, PlannerInterface>(m, " CartesianPath" , R"(
117
101
Perform linear interpolation between Cartesian poses.
118
102
Fails on collision along the interpolation path. There is no obstacle avoidance. ::
@@ -122,12 +106,15 @@ void export_solvers(py::module& m) {
122
106
# Instantiate Cartesian-space interpolation planner
123
107
cartesianPlanner = core.CartesianPath()
124
108
cartesianPlanner.step_size = 0.01
125
- cartesianPlanner.precision.translational = 0.001
109
+ cartesianPlanner.jump_threshold = 0.0 # effectively disable jump threshold.
126
110
)" )
127
111
.property <double >(" step_size" , " float: Limit the Cartesian displacement between consecutive waypoints "
128
112
" In contrast to joint-space interpolation, the Cartesian planner can also "
129
113
" 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." )
131
118
.property <double >(" min_fraction" , " float: Fraction of overall distance required to succeed." )
132
119
.def (py::init<>());
133
120
0 commit comments