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 ¶
- type ConnectMode
- type MazeConnection
- func (mc *MazeConnection) AddPath(cellindices []int, color color.RGBA) (err error)
- func (mc *MazeConnection) Init(mode ConnectMode) (err error)
- func (mc *MazeConnection) ObserveWalls(agentid int) (wallstate []int, err error)
- func (mc *MazeConnection) RetrieveDebugData() (debugstr string, err error)
- func (mc *MazeConnection) SetAddr(newaddr string) (err error)
- func (mc *MazeConnection) SetAgentState(agentid int, cellid int, thetadeg int) (err error)
- func (mc *MazeConnection) SetCellValues(cv []float32) (err error)
- func (mc *MazeConnection) StepForward(agentid int) (err error)
- func (mc *MazeConnection) TurnLeft(agentid int) (err error)
- func (mc *MazeConnection) TurnRight(agentid int) (err error)
- type RemoteAgentState
- type RemoteParams
- type RemoteReturn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 RemoteParams ¶
type RemoteReturn ¶
type RemoteReturn struct {
CellID int
}
Click to show internal directories.
Click to hide internal directories.