|
def | __init__ (self, robot_name_space, controllers_list, reset_controls, start_init_physics_parameters=True, reset_world_or_sim="SIMULATION") |
|
def | seed (self, seed=None) |
|
def | step (self, action) |
|
def | reset (self) |
|
def | close (self) |
|
◆ __init__()
def robot_gazebo_env.RobotGazeboEnv.__init__ |
( |
|
self, |
|
|
|
robot_name_space, |
|
|
|
controllers_list, |
|
|
|
reset_controls, |
|
|
|
start_init_physics_parameters = True , |
|
|
|
reset_world_or_sim = "SIMULATION" |
|
) |
| |
◆ _check_all_systems_ready()
def robot_gazebo_env.RobotGazeboEnv._check_all_systems_ready |
( |
|
self | ) |
|
|
private |
Checks that all the sensors, publishers and other simulation systems are
operational.
Reimplemented in firefly_env.FireflyEnv.
◆ _compute_reward()
def robot_gazebo_env.RobotGazeboEnv._compute_reward |
( |
|
self, |
|
|
|
observations, |
|
|
|
done |
|
) |
| |
|
private |
Calculates the reward to give based on the observations given.
◆ _env_setup()
def robot_gazebo_env.RobotGazeboEnv._env_setup |
( |
|
self, |
|
|
|
initial_qpos |
|
) |
| |
|
private |
Initial configuration of the environment. Can be used to configure initial state
and extract information from the simulation.
Reimplemented in firefly_env.FireflyEnv.
◆ _get_obs()
def robot_gazebo_env.RobotGazeboEnv._get_obs |
( |
|
self | ) |
|
|
private |
◆ _init_env_variables()
def robot_gazebo_env.RobotGazeboEnv._init_env_variables |
( |
|
self | ) |
|
|
private |
Inits variables needed to be initialised each time we reset at the start
of an episode.
Reimplemented in firefly_env.FireflyEnv.
◆ _is_done()
def robot_gazebo_env.RobotGazeboEnv._is_done |
( |
|
self, |
|
|
|
observations |
|
) |
| |
|
private |
Indicates whether or not the episode is done ( the robot has fallen for example).
Reimplemented in firefly_env.FireflyEnv.
◆ _publish_reward_topic()
def robot_gazebo_env.RobotGazeboEnv._publish_reward_topic |
( |
|
self, |
|
|
|
reward, |
|
|
|
episode_number = 1 |
|
) |
| |
|
private |
This function publishes the given reward in the reward topic for
easy access from ROS infrastructure.
:param reward:
:param episode_number:
:return:
◆ _reset_sim()
def robot_gazebo_env.RobotGazeboEnv._reset_sim |
( |
|
self | ) |
|
|
private |
◆ _set_action()
def robot_gazebo_env.RobotGazeboEnv._set_action |
( |
|
self, |
|
|
|
action |
|
) |
| |
|
private |
◆ _set_init_pose()
def robot_gazebo_env.RobotGazeboEnv._set_init_pose |
( |
|
self | ) |
|
|
private |
◆ _update_episode()
def robot_gazebo_env.RobotGazeboEnv._update_episode |
( |
|
self | ) |
|
|
private |
Publishes the cumulated reward of the episode and
increases the episode number by one.
:return:
◆ close()
def robot_gazebo_env.RobotGazeboEnv.close |
( |
|
self | ) |
|
Function executed when closing the environment.
Use it for closing GUIS and other systems that need closing.
:return:
◆ reset()
def robot_gazebo_env.RobotGazeboEnv.reset |
( |
|
self | ) |
|
◆ seed()
def robot_gazebo_env.RobotGazeboEnv.seed |
( |
|
self, |
|
|
|
seed = None |
|
) |
| |
◆ step()
def robot_gazebo_env.RobotGazeboEnv.step |
( |
|
self, |
|
|
|
action |
|
) |
| |
Function executed each time step.
Here we get the action execute it in a time step and retrieve the
observations generated by that action.
:param action:
:return: obs, reward, done, info
Here we should convert the action num to movement action, execute the action in the
simulation and get the observations result of performing that action.
◆ controllers_object
robot_gazebo_env.RobotGazeboEnv.controllers_object |
◆ cumulated_episode_reward
robot_gazebo_env.RobotGazeboEnv.cumulated_episode_reward |
◆ episode_num
robot_gazebo_env.RobotGazeboEnv.episode_num |
◆ gazebo
robot_gazebo_env.RobotGazeboEnv.gazebo |
◆ reset_controls
robot_gazebo_env.RobotGazeboEnv.reset_controls |
◆ reward_pub
robot_gazebo_env.RobotGazeboEnv.reward_pub |
The documentation for this class was generated from the following file: