trajectory

package
v0.0.0-...-dd7b263 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dt     float64
	MaxVel float64
	Acc    float64
}

type MotionProfile

type MotionProfile struct {
	// contains filtered or unexported fields
}

func GenerateProfile

func GenerateProfile(config Config, initialState State, goal ProfileGoal) MotionProfile

func (*MotionProfile) AddState

func (this *MotionProfile) AddState(state State)

func (*MotionProfile) Length

func (this *MotionProfile) Length() int

func (*MotionProfile) Plot

func (this *MotionProfile) Plot()

func (*MotionProfile) String

func (this *MotionProfile) String() string

type ProfileGoal

type ProfileGoal struct {
	Pos float64
	Vel float64
}

type State

type State struct {
	Pos  float64
	Vel  float64
	Acc  float64
	Time float64
}

func (*State) String

func (this *State) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL