Skip to content

[Request] Add practical examples to Direct Optimization documentation #393

@joaocandre

Description

@joaocandre

I'm trying to create a simple optimization tool that estimates a pre-planned sequence of target configurations that I can then track in real-time with MPC using the Direct Optimization interface, but I've found the documentation to be lacking, particularly in providing practical implementation examples that users can start from when designing their own DO strategies.

In my particular case, for instance, as a minimal starting point to allow me to better understand the practical workflow of the Direct API, I want to track a short reference kinematic/joint trajectory for a robot that is equipped with position-controlled actuators and associated joint position sensors (ignoring force tracking at the moment).
Pre-optimization, I populate sensor_measurement with my target joint positions, initialize configuration and configuration_previous with the same values and add noise as done in the unit testing code.
Optimization converges to perfect match between sensor_prediction matches sensor_measurement after a single iteration, but configuration holds rather different values, which I am having trouble understanding why, considering position-controlled joints + join position sensors should lead to a direct correspondence (or at least similar values) with the reference sensor measurement

What exactly am I missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions