Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed compilation warnigns #23

Merged
merged 1 commit into from
Jun 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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