spatial-dyn
json.h
1 
10 #ifndef SPATIAL_DYN_PARSERS_JSON_H_
11 #define SPATIAL_DYN_PARSERS_JSON_H_
12 
13 #include <ctrl_utils/json.h>
14 
15 #include "spatial_dyn/structs/articulated_body.h"
16 
17 namespace spatial_dyn {
18 
19 void to_json(nlohmann::json& j, const ArticulatedBody& ab);
20 void from_json(const nlohmann::json& j, ArticulatedBody& ab);
21 
22 void to_json(nlohmann::json& j, const RigidBody& rb);
23 void from_json(const nlohmann::json& j, RigidBody& rb);
24 
25 void to_json(nlohmann::json& j, const Joint& joint);
26 void from_json(const nlohmann::json& j, Joint& joint);
27 
28 void to_json(nlohmann::json& j, const Joint::Type& type);
29 void from_json(const nlohmann::json& j, Joint::Type& type);
30 
31 void to_json(nlohmann::json& j, const SpatialInertiad& inertia);
32 void from_json(const nlohmann::json& j, SpatialInertiad& inertia);
33 
34 void to_json(nlohmann::json& j, const Graphics& graphics);
35 void from_json(const nlohmann::json& j, Graphics& graphics);
36 
37 void to_json(nlohmann::json& j, const Graphics::Geometry& geometry);
38 void from_json(const nlohmann::json& j, Graphics::Geometry& geometry);
39 
40 void to_json(nlohmann::json& j, const Graphics::Geometry::Type& type);
41 void from_json(const nlohmann::json& j, Graphics::Geometry::Type& type);
42 
43 void to_json(nlohmann::json& j, const Graphics::Material& material);
44 void from_json(const nlohmann::json& j, Graphics::Material& material);
45 
46 } // namespace spatial_dyn
47 
48 #endif // SPATIAL_DYN_PARSERS_JSON_H_
Type
Definition: joint.h:38
Definition: discrete_dynamics.cc:21
Type
Definition: graphics.h:47