From: Walter Fetter Lages Date: Fri, 18 May 2018 15:08:16 +0000 (-0300) Subject: Fix bug in initSim(). X-Git-Url: http://git.ece.ufrgs.br/?a=commitdiff_plain;h=e98f53f58f9fd310e18819f196330822b2d81a70;p=gazebo_ros_electrical.git Fix bug in initSim(). --- 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;