Skip to content

Commit

Permalink
Made python binding of JointWaypoint accept JointState targets
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSchneider42 committed May 27, 2024
1 parent c610d30 commit cf0809c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,14 +747,14 @@ PYBIND11_MODULE(_franky, m) {
"return_when_finished"_a = true,
"finish_wait_factor"_a = 1.2);

py::class_<Waypoint<Vector7d>>(m, "JointWaypoint")
py::class_<Waypoint<JointState>>(m, "JointWaypoint")
.def(py::init<>(
[](
const Vector7d &target,
const JointState &target,
ReferenceType reference_type,
RelativeDynamicsFactor relative_dynamics_factor,
std::optional<double> minimum_time) {
return Waypoint<Vector7d>{
return Waypoint<JointState>{
target, reference_type, relative_dynamics_factor, minimum_time};
}
),
Expand Down

0 comments on commit cf0809c

Please sign in to comment.