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

Chnaged the project name to avoid problems in ubuntu package creation.

parent 06671c6b
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ if(COMMAND cmake_policy)
endif(COMMAND cmake_policy)
# The project name and the type of project
PROJECT(dynamixel_motor_cont)
PROJECT(dynamixel-motor-cont)
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib)
......
......@@ -19,14 +19,15 @@ int main(int argc, char *argv[])
std::vector<float> pos2(1),max(1),min(1);
std::vector<float> position(1);
std::vector<bool> enable(1);
std::string serial="A9007DKA";
try{
if(dyn_server->get_num_buses()>0)
{
cont2=new CDynamixelMotor(cont2_name,0,1000000,11);
cont2=new CDynamixelMotor(cont2_name,serial,1000000,12);
cont2->close();
delete cont2;
cont2=new CDynamixelMotor(cont2_name,0,1000000,11);
cont2=new CDynamixelMotor(cont2_name,serial,1000000,12);
enable[0]=true;
cont2->enable(enable);
#ifdef _HAVE_XSD
......@@ -36,7 +37,7 @@ int main(int argc, char *argv[])
events2.push_back(cont2->config_position_feedback(fb_polling,100.0));
#endif
cont2->set_torque(100.0);
cont3=new CDynamixelMotor(cont3_name,0,1000000,21);
cont3=new CDynamixelMotor(cont3_name,serial,1000000,21);
enable[0]=true;
cont3->enable(enable);
#ifdef _HAVE_XSD
......
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