|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include "momentum/io/urdf/urdf_mesh_io.h"#include <cmath>#include "momentum/common/log.h"#include "momentum/math/constants.h"#include <array>#include <fstream>#include <sstream>#include <unordered_map>Go to the source code of this file.
Namespaces | |
| namespace | momentum |
Functions | |
| Mesh | momentum::generateBoxMesh (float dimX, float dimY, float dimZ) |
| Generates a box mesh with the given dimensions centered at the origin. | |
| Mesh | momentum::generateCylinderMesh (float radius, float length, int segments=32) |
| Generates a cylinder mesh centered at the origin with the Z axis as its axis. | |
| Mesh | momentum::generateSphereMesh (float radius, int latSegments=16, int lonSegments=32) |
| Generates a UV sphere mesh centered at the origin. | |
| std::optional< Mesh > | momentum::loadStlMesh (const filesystem::path &filepath) |
| Loads a mesh from an STL file (binary or ASCII). | |
| std::optional< Mesh > | momentum::loadObjMesh (const filesystem::path &filepath) |
| Loads a mesh from a Wavefront OBJ file (vertices and triangular/polygon faces). | |
| std::optional< filesystem::path > | momentum::resolveMeshPath (const std::string &filename, const filesystem::path &urdfDir) |
| Resolves a mesh filename from a URDF visual element to a filesystem path. | |