From c954cadc4223dfda8efb9a55b2763aad64654a6a Mon Sep 17 00:00:00 2001 From: Tim Schneider Date: Tue, 29 Aug 2023 16:23:38 +0300 Subject: [PATCH] Fixed issue in README example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ad0aca65..70fb44d0 100644 --- a/README.md +++ b/README.md @@ -204,12 +204,12 @@ In python, you can use them as follows: ```python import math from scipy.spatial.transform import Rotation -from franky import JointPositionMotion, JointWaypointMotion, JointWaypoint, JointPositionStopMotion, LinearMotion, CartesianWaypointMotion, CartesianWaypoint, Affine, RobotPose, ReferenceType, CartesianPoseStopMotion +from franky import JointWaypointMotion, JointWaypoint, JointPositionStopMotion, LinearMotion, CartesianWaypointMotion, CartesianWaypoint, Affine, RobotPose, ReferenceType, CartesianPoseStopMotion # A point-to-point motion in the joint space -m1 = JointPositionMotion([-1.8, 1.1, 1.7, -2.1, -1.1, 1.6, -0.4]) +m1 = JointWaypointMotion([JointWaypoint([-1.8, 1.1, 1.7, -2.1, -1.1, 1.6, -0.4])]) -# Generalization of JointPositionMotion that allows for multiple waypoints +# A motion in joint space with multiple waypoints m2 = JointWaypointMotion([ JointWaypoint([-1.8, 1.1, 1.7, -2.1, -1.1, 1.6, -0.4]), JointWaypoint([-1.7, 1.2, 1.8, -2.0, -1.0, 1.7, -0.3]),