mc_rtc  2.14.0
RobotModule_visual.h
Go to the documentation of this file.
1 #pragma once
2 #include <mc_rbdyn/api.h>
3 #include <mc_rtc/path.h>
4 
5 #include <mc_rbdyn/RobotModule.h>
6 #include <SpaceVecAlg/SpaceVecAlg>
7 
8 namespace mc_rbdyn
9 {
10 
11 struct Surface;
12 
23 MC_RBDYN_DLLAPI sva::RBInertiad computeInertiaFromVisual(const rbd::parsers::Visual & visual, double mass);
24 
31 MC_RBDYN_DLLAPI std::vector<std::shared_ptr<Surface>> genSurfacesFromVisual(const rbd::parsers::Visual & visual);
32 
43  const rbd::parsers::Visual & visual,
44  const sva::RBInertiad & inertia,
45  bool isFixed = true);
46 
59  const rbd::parsers::Visual & visual,
60  double mass,
61  bool isFixed = true);
62 
95 
96 } // namespace mc_rbdyn
#define MC_RBDYN_DLLAPI
Definition: api.h:50
Definition: generic_gripper.h:15
MC_RBDYN_DLLAPI RobotModulePtr robotModuleFromVisual(const std::string &name, const rbd::parsers::Visual &visual, const sva::RBInertiad &inertia, bool isFixed=true)
Creates a RobotModule from a visual geometry and inertia.
MC_RBDYN_DLLAPI std::vector< std::shared_ptr< Surface > > genSurfacesFromVisual(const rbd::parsers::Visual &visual)
Generates planar surfaces from a visual geometry description.
MC_RBDYN_DLLAPI sva::RBInertiad computeInertiaFromVisual(const rbd::parsers::Visual &visual, double mass)
Computes the inertia from a visual geometry description.
std::shared_ptr< RobotModule > RobotModulePtr
Definition: RobotModule.h:632
auto Visual(const std::string &name, GetVisual get_visual_fn, GetPos get_pos_fn)
Definition: Visual.h:64
Simplify access to values hold within a JSON file.
Definition: Configuration.h:166