Skip to content

IRIM-Technology-Transition-Lab/robot-spline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot Spline

Spline Path Generation Library (especially for Robotics)

Travis CI build status

Description

This package is used to generate spline paths (simple or bezier), which a can then be submitted to a robot to follow.

Installation

pip install robot-spline

Example

You can generate a spline path quite easily:

# Import the package
import spline

# Define 3 points, since we need a minimum of 3 points to generate a spline curve.
cur_pt = [5, 7, 13]  # the robot's current position
next_pt = [15, 2, 11]  # the robot's next position
goal_pt = [1, 9, 0]  # The robot's final goal position

# Create our spliner object.
spliner = spline.Spline(order=2)

# Given the 3 points, generate the spline path as a bezier curve
path = spliner.get_path(cur_pt, goal_pt, next_pt, n=30, bezier=True)

About

Spline Path Generation Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages