Documentation ¶
Index ¶
- type Chassis
- func (c *Chassis) Move(leftStick *controller.StickPosition, rightStick *controller.StickPosition, ...) error
- func (c *Chassis) SetControllerMode(m controller.Mode) error
- func (c *Chassis) SetMode(m Mode) error
- func (c *Chassis) SetPosition(m Mode, x, y, z float64) error
- func (c *Chassis) SetSpeed(m Mode, x, y, z float64) error
- func (c *Chassis) StopMovement(m Mode) error
- type Mode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chassis ¶
type Chassis struct { *internal.BaseModule // contains filtered or unexported fields }
Chassis allows controlling the robot chassis. It also works as the robot main controller interface.
func New ¶
func New(ub unitybridge.UnityBridge, l *logger.Logger, cm *connection.Connection, rm *robot.Robot) (*Chassis, error)
New creates a new Chassis instance.
func (*Chassis) Move ¶
func (c *Chassis) Move(leftStick *controller.StickPosition, rightStick *controller.StickPosition, m controller.Mode) error
Move moves the robot using the given stick positions and control mode.
func (*Chassis) SetControllerMode ¶
func (c *Chassis) SetControllerMode(m controller.Mode) error
SetControllerMode sets the controller mode for the robot.
func (*Chassis) SetPosition ¶
SetPosition sets the chassis position.
func (*Chassis) SetSpeed ¶
SetSpeed sets the chassis speed. Limits are [-3.5, 3.5] (m/s) for x and y and [-360, 360] (degrees/s) for z.
func (*Chassis) StopMovement ¶
StopMovement stops the chassis movement.
Click to show internal directories.
Click to hide internal directories.