mazeconnect

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

the mazeconnect package is your interface to both: * maze simulator for testing algorithms and displaying locally on your screen * hardware robots navigating the physical maze (this functionality coming soon!)

simulator RPC calls

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectMode

type ConnectMode int
const (
	M_simulator ConnectMode = iota
	M_hardware
)

type MazeConnection

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

func (*MazeConnection) AddPath

func (mc *MazeConnection) AddPath(cellindices []int, color color.RGBA) (err error)

func (*MazeConnection) Init

func (mc *MazeConnection) Init(mode ConnectMode) (err error)

func (*MazeConnection) ObserveWalls

func (mc *MazeConnection) ObserveWalls(agentid int) (wallstate []int, err error)

func (*MazeConnection) RetrieveDebugData

func (mc *MazeConnection) RetrieveDebugData() (debugstr string, err error)

func (*MazeConnection) SetAddr

func (mc *MazeConnection) SetAddr(newaddr string) (err error)

func (*MazeConnection) SetAgentState

func (mc *MazeConnection) SetAgentState(agentid int, cellid int, thetadeg int) (err error)

func (*MazeConnection) SetCellValues

func (mc *MazeConnection) SetCellValues(cv []float32) (err error)

func (*MazeConnection) StepForward

func (mc *MazeConnection) StepForward(agentid int) (err error)

func (*MazeConnection) TurnLeft

func (mc *MazeConnection) TurnLeft(agentid int) (err error)

func (*MazeConnection) TurnRight

func (mc *MazeConnection) TurnRight(agentid int) (err error)

type RemoteAgentState

type RemoteAgentState struct {
	AgentID  int
	CellIdx  int
	ThetaDeg int
}

type RemoteParams

type RemoteParams struct {
	AgentID  int
	StepSize int // [# cells] +: forward, -:backward, 0: no step, just return
	TurnDeg  int // 90 or -90 ONLY
	Color    color.RGBA
	Data     []float32
}

type RemoteReturn

type RemoteReturn struct {
	CellID int
}

Jump to

Keyboard shortcuts

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