openai_ros.task_envs.turtlebot2 package¶
Submodules¶
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
-
__init__
()[source]¶ 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'¶
-
_get_obs
()[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:
-
_init_env_variables
()[source]¶ Inits variables needed to be initialised each time we reset at the start of an episode. :return:
-
_set_action
(action)[source]¶ 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.
-
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),]
-