pinocchio  3.9.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Loading...
Searching...
No Matches
model-graph-algo.hpp
1//
2// Copyright (c) 2025 INRIA
3//
4
5#ifndef __pinocchio_parsers_graph_model_graph_algo_hpp__
6#define __pinocchio_parsers_graph_model_graph_algo_hpp__
7
8#include "pinocchio/parsers/graph/fwd.hpp"
9
10#include "pinocchio/parsers/graph/model-graph.hpp"
11#include "pinocchio/parsers/graph/joints.hpp"
12
13#include <Eigen/Core>
14
15#include <string>
16#include <vector>
17
18namespace pinocchio
19{
20 namespace graph
21 {
24 {
26 Model model;
27 ModelGraphBuildInfo build_info;
28 };
29
39 PINOCCHIO_PARSERS_DLLAPI Model buildModel(
40 const ModelGraph & g,
41 const std::string & root_body,
42 const SE3 & root_position,
43 const JointVariant & root_joint = JointFixed(),
44 const std::string & root_joint_name = "root_joint");
45
56 PINOCCHIO_PARSERS_DLLAPI BuildModelWithBuildInfoReturn buildModelWithBuildInfo(
57 const ModelGraph & g,
58 const std::string & root_body,
59 const SE3 & root_position,
60 const JointVariant & root_joint = JointFixed(),
61 const std::string & root_joint_name = "root_joint");
62
70 PINOCCHIO_PARSERS_DLLAPI ModelGraph
71 prefixNames(const ModelGraph & g, const std::string & prefix);
72
85 PINOCCHIO_PARSERS_DLLAPI ModelGraph merge(
86 const ModelGraph & g1,
87 const ModelGraph & g2,
88 const std::string & g1_body,
89 const std::string & g2_body,
90 const SE3 & pose_g2_body_in_g1,
91 const JointVariant & merging_joint = JointFixed(),
92 const std::string & merging_joint_name = "merging_joint");
93
102 PINOCCHIO_PARSERS_DLLAPI ModelGraph lockJoints(
103 const ModelGraph & g,
104 const std::vector<std::string> & joints_to_lock,
105 const std::vector<Eigen::VectorXd> & reference_configurations);
106
107 } // namespace graph
108} // namespace pinocchio
109#endif // ifndef __pinocchio_parsers_graph_model_graph_algo_hpp__
Main pinocchio namespace.
Definition treeview.dox:11
buildModelWithBuildInfo return value.
Contains information about how buildModel walked the ModelGraph to construct a Model....
Represents multibody model as a bidirectional graph.