ros_gazebo_gym.core.controllers_connection
Contains a python utility class that makes it easier to interact with ros_control controllers.
Module Contents
Classes
Class that contains several methods that can be used to interact with the  | 
Attributes
- class ros_gazebo_gym.core.controllers_connection.ControllersConnection(namespace='', controllers_list=None)[source]
 Class that contains several methods that can be used to interact with the ros_control controllers.
- list_service
 The controller list service.
- Type:
 rospy.impl.tcpros_service.ServiceProxy
- switch_service
 The controller switch service.
- Type:
 rospy.impl.tcpros_service.ServiceProxy
Initialize the ControllersConnection instance.
- Parameters:
 
- switch_controllers(controllers_on, controllers_off, strictness=1, timeout=0.0)[source]
 Function used to switch controllers on and off.
- Parameters:
 controllers_on (list) – The controllers you want to turn on.
controllers_off (list) – The controllers you want to turn off.
strictness (int, optional) – Whether the switching will fail if anything goes wrong. Defaults to
1.timeout (float) – The timeout before the request is cancelled. Defaults to
0.0meaning no timeout.
- Returns:
 Boolean specifying whether the switch was successful.
- Return type:
 
- reset_controllers(timeout=1.0)[source]
 Resets the currently running controllers by turning them off and on.
- Parameters:
 timeout (float) – The timeout before the request is cancelled. Defaults to
0.0meaning no timeout.