Skip to content
Miguel Duarte edited this page Apr 5, 2015 · 5 revisions

This page describes the available options for the --robots argument. This argument specifies the type of robot, as well as its sensors and actuators.

Options for Differential Drive Robot

  • x: The starting horizontal position of the robot relative to the center of the environment. Some environments might ignore this setting and place the robot in different positions. Default is 0.

  • y: The starting vertical position of the robot relative to the center of the environment. Some environments might ignore this setting and place the robot in different positions. Default is 0.

  • numberofrobots: The number of robots that will appear during this simulation. All robots will start in the same position specified by the x and y options. Some environments might ignore this setting and place the robots in different positions. Default is 1.

  • radius: The radius of the robot.

  • diameter: The diameter of the robot.

  • distancewheels: The distance between the wheels of the robot.

  • color: The color of the robot.

  • description: The description or name of the robot, that can be used to distinguish between different types of robots for example.

Sensors and Actuators

Sensors and actuators can be added to the configuration file by specifying an identifier, the sensor/actuator classname, its id, and its arguments.

Arguments example

--robots
 	classname=DifferentialDriveRobot,
	x=0,
	y=0,
	numberofrobots=1,
	sensors=(
		PreyCarriedSensor_1=(
			classname=PreyCarriedSensor,
			id=1
		),
		SimpleNestSensor_2=(
			classname=SimpleNestSensor,
			range=2,
			numbersensors=4,
			id=2
		),
		SimplePreySensor_3=(
			classname=PreySensor,
			numbersensors=4,
			id=3
		)
	),
	actuators=(
		TwoWheelActuator_1=(classname=TwoWheelActuator,
			id=1
		),
		PreyPickerActuator_2=(
			classname=PreyPickerActuator,
			id=2
		)
	)