From e98f53f58f9fd310e18819f196330822b2d81a70 Mon Sep 17 00:00:00 2001 From: Walter Fetter Lages Date: Fri, 18 May 2018 12:08:16 -0300 Subject: [PATCH] Fix bug in initSim(). --- src/dcmotor_robot_hw_sim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dcmotor_robot_hw_sim.cpp b/src/dcmotor_robot_hw_sim.cpp index cb32e9a..7dcbf7e 100644 --- a/src/dcmotor_robot_hw_sim.cpp +++ b/src/dcmotor_robot_hw_sim.cpp @@ -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; -- 2.12.0