ros_gazebo_gym.exceptions

Module containing several custom exceptions.

Module Contents

exception ros_gazebo_gym.exceptions.EePoseLookupError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when an error occurred while trying to retrieve the EE pose.

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initializes the EePoseLookupError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.

exception ros_gazebo_gym.exceptions.EeRpyLookupError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when an error occurred while trying to retrieve the EE orientation (given in euler angles).

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initializes the EeRpyLookupError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.

exception ros_gazebo_gym.exceptions.SpawnModelError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when an error occurred while trying to spawn a Gazebo model.

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initializes the SpawnModelError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.

exception ros_gazebo_gym.exceptions.GetModelStateError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when an error occurred while trying get the model state from gazebo.

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initializes the GetModelStateError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.

exception ros_gazebo_gym.exceptions.GetLinkStateError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when an error occurred while trying get the link state from gazebo.

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initializes the GetLinkStateError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.

exception ros_gazebo_gym.exceptions.SetModelStateError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when an error occurred while trying set the model state on gazebo.

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initializes the SetModelStateError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.

exception ros_gazebo_gym.exceptions.SetModelConfigurationError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when an error occurred while trying set the model configuration on gazebo.

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initializes the SetModelConfigurationError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.

exception ros_gazebo_gym.exceptions.GetPhysicsPropertiesError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when an error occurred while trying to retrieve the physics properties from gazebo.

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initializes the GetPhysicsPropertiesError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.

exception ros_gazebo_gym.exceptions.SetPhysicsPropertiesError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when an error occurred while trying to set physics properties on the gazebo physics engine.

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initializes the SetPhysicsPropertiesError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.