Robotics Playground – Object Environment

Description

This environment provides a differential drive robot within a dynamic playground to aid in the visualization of programming basic robot motion and tasks. The robot is equipped with several sensors that can be used to automate its behavior.

In this environment the robot can identify and move objects of different colors within the arena.

NOTE: Make sure to place the necessary motor blocks to interact with the actuators in the robot. The differential drive robot has one motor in each wheel.

Arena Settings

Arena Length: Length of the arena in meters

Arena Width: Width of the arena in meters

Robot Settings

Robot ID: This ID is a number used to identify the sensors attached to the robot. Set the same ID on all the sensors you wish to attach to the robot within the environment.

Distance between wheels: Distance in meters corresponding to the separation between the robot wheels.

Wheel radius: Radius of robot wheels in meters.

Color: Color of the robot body as an RGB (Red Green Blue) vector. Example [1 0 0] (Red color)

Start Position: Vector of X and Y coordinates corresponding to the start position of the robot relative to the center of the arena. Example: [0 0] (Places robot in the center of the arena.)

Objects

The objects present within the environment can be set through the “Objects” tab in the block mask as shown I the picture below. Object can interact with the plow attached to the robot but not with each other

Objects can be of “Red”, “Green” and “Blue” color and can be located with respect to the robot by using the Object Detector sensor available in the Robotics Playground library.

Start Position: Is the object starting position in meters with respect to the center of the arena.

Color: It is the object’s color in the virtual environment and will also correspond to the label used in the object detector sensor.