SimMjcf.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <filesystem>
4 
5 #include <VirtualRobot/SceneObject.h>
6 #include <VirtualRobot/MJCF/Document.h>
7 
9 
10 
11 namespace armarx
12 {
13  class LengthScaling;
14 }
15 
16 namespace armarx
17 {
18 
19  class SimMJCF : Logging
20  {
21  public:
22 
23  SimMJCF(mjcf::Document& document, const LengthScaling& scaling,
24  const std::string& loggingTag = "SimMJCF");
25 
26  void includeBaseFile(const std::string& path, const std::string& relativeFrom);
27 
28  void addObjectDefaults(const std::string& className);
29 
30  void setTimeStep(float timestep);
31 
32  void addFloor(bool enabled, const std::string& texture, const std::string& name, float size);
33 
35  VirtualRobot::SceneObject::Physics::SimulationType simType,
36  const std::string& className, const std::filesystem::path& meshDir);
37 
38 
39  private:
40 
41  mjcf::Document& document;
42  const LengthScaling& scaling;
43 
44  };
45 
46 }
armarx::SimMJCF::includeBaseFile
void includeBaseFile(const std::string &path, const std::string &relativeFrom)
Definition: SimMjcf.cpp:29
armarx::SimMJCF::addFloor
void addFloor(bool enabled, const std::string &texture, const std::string &name, float size)
Definition: SimMjcf.cpp:70
armarx::SimMJCF::SimMJCF
SimMJCF(mjcf::Document &document, const LengthScaling &scaling, const std::string &loggingTag="SimMJCF")
Definition: SimMjcf.cpp:19
armarx::SimMJCF::addObject
void addObject(VirtualRobot::SceneObjectPtr object, VirtualRobot::SceneObject::Physics::SimulationType simType, const std::string &className, const std::filesystem::path &meshDir)
Definition: SimMjcf.cpp:131
enabled
std::atomic< bool > * enabled
Definition: RemoteGuiWidgetController.cpp:75
armarx::SimMJCF::setTimeStep
void setTimeStep(float timestep)
Definition: SimMjcf.cpp:65
armarx::SimMJCF
Definition: SimMjcf.h:19
armarx::Logging
Base Class for all Logging classes.
Definition: Logging.h:232
scene3D::SceneObjectPtr
boost::intrusive_ptr< SceneObject > SceneObjectPtr
Definition: PointerDefinitions.h:40
Logging.h
armarx::LengthScaling
Definition: LengthScaling.h:6
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::SimMJCF::addObjectDefaults
void addObjectDefaults(const std::string &className)
Definition: SimMjcf.cpp:51