controller

class jiminy_py.core.AbstractController

Bases: Boost.Python.instance

Raises an exception This class cannot be instantiated from Python

get_options((AbstractController)arg1) dict :

Get the configuration options of the controller.

Returns

Dictionary with the parameters of the controller

initialize((AbstractController)self, (Robot)robot) hresult_t :

Set the parameters of the controller.

Parameters

robot

Robot

return

Return code to determine whether the execution of the method was successful.

property is_initialized
register_constants((AbstractController)self, (str)fieldnames, (object)values) hresult_t
register_variable((AbstractController)self, (str)fieldname, (object)value) hresult_t :

Dynamically registered a Eigen Vector to the telemetry.

Internally, all it does is to store a reference to the variable, then it logs its value periodically. There is no update mechanism what so ever nor safety check. So the user has to take care of the life span of the variable, and to update it manually whenever it is necessary to do so.

Parameters
  • fieldnames – Name of each element of the variable. It will appear in the header of the log.

  • values

    Eigen vector to add to the telemetry. It accepts non-contiguous temporary.

    return

    Return code to determine whether the execution of the method was successful.

register_variables((AbstractController)self, (list)fieldnames, (object)values) hresult_t
remove_entries((AbstractController)arg1) None :

Remove all variables dynamically registered to the telemetry.

Note that one must reset Jiminy Engine for this to take effect.

reset((AbstractController)self[, (bool)reset_dynamic_telemetry=False]) hresult_t :

Reset the internal state of the controller.

Note that it resets the configuration of the telemetry.

Note

This method is not intended to be called manually. The Engine is taking care of it when its own reset method is called.

Parameters

resetDynamicTelemetry – Whether or not variables dynamically registered to the telemetry must be removed. Optional: False by default

property robot
property sensors_data
set_options((AbstractController)arg1, (dict)arg2) None :

Set the configuration options of the controller.

Note that one must reset Jiminy Engine for this to take effect.

Parameters

ctrlOptions

Dictionary with the parameters of the controller

return

Return code to determine whether the execution of the method was successful.