#include <model_specification.h>
◆ ModelSpecification() [1/2]
| opyn::ModelSpecification::ModelSpecification |
( |
| ) |
|
|
explicit |
◆ ModelSpecification() [2/2]
| opyn::ModelSpecification::ModelSpecification |
( |
OpenSim::Model && |
opensim_model | ) |
|
|
explicit |
◆ bake_station_defined_frames()
| void opyn::ModelSpecification::bake_station_defined_frames |
( |
| ) |
|
Converts any StationDefinedFrames in *this into PhysicalOffsetFrames.
Can be useful for compatibility with OpenSim <4.6, which doesn't support StationDefinedFrames.
◆ compile()
| Model opyn::ModelSpecification::compile |
( |
| ) |
const |
◆ example_double_pendulum()
◆ example_pendulum()
◆ flush_in_memory_resources_to()
| void opyn::ModelSpecification::flush_in_memory_resources_to |
( |
const std::filesystem::path & |
directory | ) |
|
Flushes all in-memory resources in *this to directory and updates the associated components to point to the flushed resources.
◆ from_osim()
| static ModelSpecification opyn::ModelSpecification::from_osim |
( |
const std::filesystem::path & |
source | ) |
|
|
static |
◆ root_directory()
| std::filesystem::path opyn::ModelSpecification::root_directory |
( |
| ) |
const |
Returns the root directory that this ModelSpecification uses when it resolves filesystem resources. That is, complete resource paths are resolved as root_directory() / resource_path.
◆ set_root_directory()
| void opyn::ModelSpecification::set_root_directory |
( |
const std::filesystem::path & |
| ) |
|
Sets the root directory that this ModelSpecification uses when it resolves filesystem resources.
◆ to_osim() [1/2]
| std::string opyn::ModelSpecification::to_osim |
( |
| ) |
const |
Returns *this written to a std::string in an .osim format.
◆ to_osim() [2/2]
| void opyn::ModelSpecification::to_osim |
( |
const std::filesystem::path & |
destination | ) |
const |
Writes *this to destination in an .osim format.
The documentation for this class was generated from the following file: