open-dynamic-robot-initiative / robot_properties_solo

BSD 3-Clause "New" or "Revised" License
40 stars 20 forks source link

Add method to reset Solo12 to initial state #55

Closed luator closed 1 year ago

luator commented 1 year ago

Description

The new reset_to_initial_state method gets initial positions and velocities from Solo12Config and uses it to reset the simulation.

This simplifies the setup, especially when used from within C++ code (needed for simulation driver in https://github.com/open-dynamic-robot-initiative/robot_interfaces_solo/pull/3).

How I Tested

By using it in https://github.com/open-dynamic-robot-initiative/robot_interfaces_solo/pull/3.

I fulfilled the following requirements