Module mrh

Multiple robot control server.

Authors: Thomas Lorentsen.

Description

Multiple robot control server. Allow multiple robots to be controlled from one driver. Due to the async driver, it can only be loaded once. Use this to start the driver and allow multiple robot connections to be made. By passing the robot pid from this module into callport the messages will automatically be forwarded to the driver.

Data Types

info()

info() = {Rid::pid(), {RobotName, Host, Port, Index}} | list()

Function Index

call_port/2Pass the robot id and the message to send to the driver.
info/1Returns information about the robot.
start/0Starts the driver and the multirobot server.

Function Details

call_port/2

call_port(Pid, Message) -> any()

Pass the robot id and the message to send to the driver. Allows communication to the driver. This will send the message to the driver and return its reply. Pass commands to the server

info/1

info(RobotId::pid()) -> info()

Returns information about the robot.

start/0

start() -> RobotServer::pid() | {error, Error::atom()}

Starts the driver and the multirobot server.


Generated by EDoc, Aug 13 2009, 23:20:23.