Skip to content

Commit

Permalink
Removed compilation warnigns (#23)
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <ahcorde@gmail.com>
  • Loading branch information
ahcorde authored Jun 30, 2020
1 parent 6b3028d commit 1227f48
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions gazebo_ros2_control/include/gazebo_ros2_control/robot_hw_sim.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,20 @@ class RobotHWSim : public hardware_interface::RobotHardware

// @note: Avoid using these functions! ros2_control was not built with gazebo_ros_control
// in mind, keep to using readSim and writeSim so we don't have to update the documents for now
virtual hardware_interface::hardware_interface_ret_t init() {}
virtual hardware_interface::hardware_interface_ret_t read() {}
virtual hardware_interface::hardware_interface_ret_t write() {}
virtual hardware_interface::hardware_interface_ret_t init()
{
return hardware_interface::HW_RET_ERROR;
}

virtual hardware_interface::hardware_interface_ret_t read()
{
return hardware_interface::HW_RET_ERROR;
}

virtual hardware_interface::hardware_interface_ret_t write()
{
return hardware_interface::HW_RET_ERROR;
}
};

} // namespace gazebo_ros2_control
Expand Down

0 comments on commit 1227f48

Please sign in to comment.