openai_ros.task_envs.turtlebot2 package


openai_ros.task_envs.turtlebot2.turtlebot2_maze module

class openai_ros.task_envs.turtlebot2.turtlebot2_maze.TurtleBot2MazeEnv[source]

Bases: openai_ros.robot_envs.turtlebot2_env.TurtleBot2Env


This Task Env is designed for having the TurtleBot2 in some kind of maze. It will learn how to move around the maze without crashing.

__module__ = 'openai_ros.task_envs.turtlebot2.turtlebot2_maze'
_compute_reward(observations, done)[source]

Here we define what sensor data defines our robots observations To know which Variables we have acces to, we need to read the TurtleBot2Env API DOCS :return:


Inits variables needed to be initialised each time we reset at the start of an episode. :return:


This set action will Set the linear and angular speed of the turtlebot2 based on the action number given. :param action: The action integer that set s what movement to do next.


Sets the Robot in its init pose

discretize_observation(data, new_ranges)[source]

Discards all the laser readings that are not multiple in index of new_ranges value.

reward_range = None

We set the Observation space for the 6 observations cube_observations = [

round(current_disk_roll_vel, 0), round(y_distance, 1), round(roll, 1), round(pitch, 1), round(y_linear_speed,1), round(yaw, 1),


Module contents