Skip to content
Snippets Groups Projects
Commit 49d3c74b authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved an error in some examples when the XSD library was not installed on the system.

parent c497ede4
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,13 @@ int main(int argc, char *argv[])
group=new CDynamixelMotorGroup(group_name);
name=group->add_motor_control(cont1);
#ifdef _HAVE_XSD
group->config_motor_control(name,config_file);
#endif
name=group->add_motor_control(cont2);
#ifdef _HAVE_XSD
group->config_motor_control(name,config_file);
#endif
group->get_position(pos);
group->enable(enable);
......
......@@ -18,7 +18,9 @@ std::string cont_config_file="../src/xml/base_dyn_config.xml";
int main(int argc, char * argv[])
{
try{
#ifdef _HAVE_XSD
CEventServer *event_server=CEventServer::instance();
#endif
std::list<std::string> events;
CMotorGroup group(group_name);
CMotionSequence sequence(seq_name);
......
......@@ -18,7 +18,9 @@ std::string cont_config_file="../src/xml/base_dyn_config.xml";
int main(int argc, char * argv[])
{
try{
#ifdef _HAVE_XSD
CEventServer *event_server=CEventServer::instance();
#endif
std::list<std::string> events;
CDynamixelMotorGroup group(group_name);
CMotionSequence sequence(seq_name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment