Cartesian Waypoints¶
Edit Cartesian waypoints and preview a collision-checked robot trajectory in Viser.
The video uses the defaults: 32 waypoints, 32 spline knots, and Path scale 1.25. Path tolerances are 5 cm and 15 degrees; goal tolerances are 0.5 cm and 3 degrees.
By the end of this tutorial you will have:
Loaded the Franka Panda and a table obstacle into a browser-based viewer
Planned motion through an ordered set of Cartesian targets
Edited a target and replayed the validated joint trajectory
Step 1: Start the viewer¶
Run this command in the environment from Installation:
python -m curobo.examples.getting_started.cartesian_waypoints
Open http://localhost:8080. Wait until the status reads Ready and the Plan button is enabled. Startup warms both tracking modes with CUDA graphs enabled. The viewer starts with 32 waypoints, 32 spline knots, and Path scale 1.25. The path starts 10 cm forward (world +X) and 8 cm below the home tool pose.
Step 2: Plan your first path¶
In Path presets, click Arc.
Keep Path scale at 1.25 for the default path.
Leave Waypoint tracking set to Position + orientation.
Click Plan.
The orange line connects the requested targets. When planning succeeds, a green line shows the validated tool trajectory and the robot plays the motion. Motion time reports the trajectory duration; Planning time reports the time to solve start IK and plan the path. Native max error reports the largest tracking error checked by the planner, including the start pose.
The first numbered waypoint defines the start, and the last defines the goal. The planner solves IK at the first waypoint before planning through the rest. The home configuration is an IK seed; playback begins at the solved start pose.
Step 3: Edit and replan¶
Choose Edit waypoint, or click an orange marker, to select a target. Drag its translation arrows to move it and its rotation rings to change its orientation. Click Plan again to compute a trajectory through the edited targets.
Edits clear the previous preview. Playback is enabled only after planning and validation succeed. In Playback, pause Play and move Progress to inspect the motion, then resume Play. Use Speed to change playback speed.
Step 4: Try the other presets¶
Click Straight line, Circle, Crane pick/place, Front to back, or Zigzag, then click Plan. Presets increase the waypoint count when needed to retain their defining corners. Crane pick/place describes a tool path; it does not attach or transport an object.
At Path scale 1, the largest preset bounding-box dimension is 0.25 m. The default scale of 1.25 makes that dimension 31.25 cm. Scaling resizes the targets about the first waypoint, preserving individual edits and group placement. Enable Move whole path to translate or rotate all targets together. Disable it to return to individual target editing. Reset waypoints restores the selected preset and the group’s initial pose.
Step 5: Change tracking and inspect the result¶
Set Waypoint tracking to Position only, then click Plan. This mode ignores rotations at every target, including the goal. Position + orientation tracks both translation and rotation. The requested reference uses linear position interpolation and quaternion SLERP between waypoint rotations.
Expand Tolerances to inspect the path and goal tolerances. Positions are in centimeters and orientations are in degrees. The defaults allow 5 cm and 15 degrees along the path, with 0.5 cm and 3 degrees at the goal. The green curve may depart from the orange polyline within those tolerances. A failed plan reports whether start IK, path tracking, collisions, or joint limits and dynamics prevented a valid result. Shorten or reposition the path before replanning.
Use Spline knots to change the number of spline controls. Changing this rebuilds and warms the planner while preserving waypoint edits. More knots can reduce tracking error, but may increase planning time and motion duration. The dropdown offers powers of two from 16 through 1024. A command-line count from 12 through 1024 is also added to the selector. To start with 64 knots, run:
python -m curobo.examples.getting_started.cartesian_waypoints --num-knots 64
The waypoint-count slider supports up to 256 poses when the spline has enough reference intervals. Press Ctrl+C in the terminal to stop the viewer.
For a one-shot server and planner check without a browser, run:
python -m curobo.examples.getting_started.cartesian_waypoints --test