(self, hyperparams, init_node=True)
Initialize agent.
        Args:
            hyperparams: Dictionary of hyperparameters.
            init_node: Whether or not to initialize a new ROS node.
Initialize agent.
        Args:
            hyperparams: Dictionary of hyperparameters.
            init_node: Whether or not to initialize a new ROS node.
Initialize agent . Args : hyperparams : Dictionary of hyperparameters . init_node : Whether or not to initialize a new ROS node .
def __init__(self, hyperparams, init_node=True):
        """
        Initialize agent.
        Args:
            hyperparams: Dictionary of hyperparameters.
            init_node: Whether or not to initialize a new ROS node.
        """
        config = copy.deepcopy(AGENT_ROS)
        config.update(hyperparams)
        Agent.__init__(self, config)
        if init_node:
            rospy.init_node('gps_agent_ros_node')
        self._init_pubs_and_subs()
        self._seq_id = 0  # Used for setting seq in ROS commands.

        conditions = self._hyperparams['conditions']

        self.x0 = []
        for field in ('x0', 'ee_points_tgt', 'reset_conditions'):
            self._hyperparams[field] = setup(self._hyperparams[field],
                                             conditions)
        self.x0 = self._hyperparams['x0']

        r = rospy.Rate(1)
        r.sleep()

        self.use_tf = False
        self.observations_stale = True
def __init__ ( self , hyperparams , init_node = True ) : config = copy . deepcopy ( AGENT_ROS ) config . update ( hyperparams ) Agent . __init__ ( self , config ) if init_node : rospy . init_node ( 'gps_agent_ros_node' ) self . _init_pubs_and_subs ( ) self . _seq_id = 0 # Used for setting seq in ROS commands. conditions = self . _hyperparams [ 'conditions' ] self . x0 = [ ] for field in ( 'x0' , 'ee_points_tgt' , 'reset_conditions' ) : self . _hyperparams [ field ] = setup ( self . _hyperparams [ field ] , conditions ) self . x0 = self . _hyperparams [ 'x0' ] r = rospy . Rate ( 1 ) r . sleep ( ) self . use_tf = False self . observations_stale = True