5
5
#pragma once
6
6
7
7
#include < mc_rbdyn/Robot.h>
8
+
8
9
#include < mc_rtc/gui/StateBuilder.h>
9
- #include " mc_rtc/gui/types.h"
10
+ #include < mc_rtc/gui/types.h>
10
11
11
12
namespace mc_rbdyn ::gui
12
13
{
@@ -22,22 +23,6 @@ static const mc_rtc::gui::PolyhedronConfig defaultConvexConfig = []()
22
23
return cfg;
23
24
}();
24
25
25
- /* *
26
- * Helper function to create a GUI element from a convex object inside a robot
27
- *
28
- * \see void addConvexToGUI(mc_rtc::gui::StateBuilder &,
29
- const mc_rtc::gui::PolyhedronConfig &,
30
- const std::vector<std::string> &,
31
- const mc_rbdyn::Robot &,
32
- const std::string &,
33
- const std::optional<std::string> & publishName);
34
- */
35
- MC_RBDYN_DLLAPI void addConvexToGUI (mc_rtc::gui::StateBuilder & gui,
36
- const std::vector<std::string> & category,
37
- const mc_rbdyn::Robot & robot,
38
- const std::string & name,
39
- const std::optional<std::string> & publishName = std::nullopt);
40
-
41
26
/* * Helper function to create a GUI element from a convex object inside a robot
42
27
*
43
28
* \param gui State builder where the object is added (typically controller.gui()
@@ -55,9 +40,9 @@ MC_RBDYN_DLLAPI void addConvexToGUI(mc_rtc::gui::StateBuilder & gui,
55
40
*/
56
41
MC_RBDYN_DLLAPI void addConvexToGUI (mc_rtc::gui::StateBuilder & gui,
57
42
const std::vector<std::string> & category,
58
- const mc_rtc::gui::PolyhedronConfig & cfg,
59
43
const mc_rbdyn::Robot & robot,
60
44
const std::string & name,
45
+ const mc_rtc::gui::PolyhedronConfig & cfg = defaultConvexConfig,
61
46
const std::optional<std::string> & publishName = std::nullopt);
62
47
63
48
} // namespace mc_rbdyn::gui
0 commit comments