File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 22
22
23
23
#ifdef BOOST_MPL_LIMIT_VECTOR_SIZE
24
24
#pragma push_macro("BOOST_MPL_LIMIT_VECTOR_SIZE")
25
+ #define UNDEF_BOOST_MPL_LIMIT_VECTOR_SIZE
25
26
#undef BOOST_MPL_LIMIT_VECTOR_SIZE
27
+ #endif
28
+
29
+ #ifdef BOOST_MPL_LIMIT_LIST_SIZE
30
+ #pragma push_macro("BOOST_MPL_LIMIT_LIST_SIZE")
31
+ #define UNDEF_BOOST_MPL_LIMIT_LIST_SIZE
32
+ #undef BOOST_MPL_LIMIT_LIST_SIZE
33
+ #endif
34
+
35
+
26
36
#include < boost/property_tree/ptree.hpp>
37
+
38
+ #ifdef UNDEF_BOOST_MPL_LIMIT_VECTOR_SIZE
27
39
#pragma pop_macro("BOOST_MPL_LIMIT_VECTOR_SIZE")
28
- #else
29
- #include < boost/property_tree/ptree.hpp>
40
+ #endif
41
+
42
+ #ifdef UNDEF_BOOST_MPL_LIMIT_LIST_SIZE
43
+ #pragma pop_macro("BOOST_MPL_LIMIT_LIST_SIZE")
30
44
#endif
31
45
32
46
#include " boost/assign.hpp"
Original file line number Diff line number Diff line change @@ -225,8 +225,11 @@ void ParameterServer::init_simple(const double &dt) {
225
225
if (listOfRobots->size () == 1 )
226
226
localName = (*listOfRobots)[0 ];
227
227
else {
228
+ std::ostringstream oss;
229
+ oss << " No robot registered in the parameter server list" ;
230
+ oss << " listOfRobots->size: " << listOfRobots->size ();
228
231
throw ExceptionTools (ExceptionTools::ErrorCodeEnum::PARAMETER_SERVER,
229
- " No robot registered in the parameter server list " );
232
+ oss. str () );
230
233
}
231
234
232
235
if (!isNameInRobotUtil (localName)) {
Original file line number Diff line number Diff line change 23
23
#include < boost/property_tree/xml_parser.hpp>
24
24
#endif
25
25
26
+
26
27
#include < dynamic-graph/factory.h>
27
28
#include < iostream>
28
29
#include < sot/core/debug.hh>
@@ -113,6 +114,7 @@ void ForceLimits::display(std::ostream &os) const {
113
114
os << lower << std::endl;
114
115
os << " Upper Limits:" << std::endl;
115
116
os << upper << std::endl;
117
+
116
118
}
117
119
118
120
/* ******************* FootUtil ***************************/
@@ -440,6 +442,9 @@ void RobotUtil::display(std::ostream &os) const {
440
442
os << " (" << it->first << " ," << it->second << " ) " ;
441
443
}
442
444
os << std::endl;
445
+
446
+ boost::property_tree::write_xml (os,property_tree_);
447
+
443
448
}
444
449
445
450
void RobotUtil::sendMsg (const std::string &msg, MsgType t,
You can’t perform that action at this time.
0 commit comments