Fix bug in initSim().
authorWalter Fetter Lages <w.fetter@ieee.org>
Fri, 18 May 2018 15:08:16 +0000 (12:08 -0300)
committerWalter Fetter Lages <w.fetter@ieee.org>
Fri, 18 May 2018 15:08:16 +0000 (12:08 -0300)
src/dcmotor_robot_hw_sim.cpp

index cb32e9a..7dcbf7e 100644 (file)
@@ -191,7 +191,7 @@ bool DCmotorRobotHWSim::initSim(
                                                      &joint_velocity_command_[j]);
       vj_interface_.registerHandle(joint_handle);
     }
-    if(hardware_interface == "VoltageJointInterface")
+    else if(hardware_interface == "VoltageJointInterface")
     {
       // Create voltage joint interface
       joint_control_methods_[j] = VOLTAGE;