Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit 6639e53

Browse files
authored
Compile with ROS iron and rolling (#202)
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
1 parent ba0c5f8 commit 6639e53

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

gazebo_ros2_control/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ ament_target_dependencies(${PROJECT_NAME}
3939
yaml_cpp_vendor
4040
)
4141

42-
if("$ENV{ROS_DISTRO}" STREQUAL "rolling")
43-
add_definitions(-DROLLING)
44-
endif()
45-
4642
add_library(gazebo_hardware_plugins SHARED
4743
src/gazebo_system.cpp
4844
)

gazebo_ros2_control/src/gazebo_ros2_control_plugin.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,7 @@ void GazeboRosControlPlugin::Load(gazebo::physics::ModelPtr parent, sdf::Element
287287
}
288288

289289
for (unsigned int i = 0; i < control_hardware_info.size(); i++) {
290-
#ifndef ROLLING
291-
std::string robot_hw_sim_type_str_ = control_hardware_info[i].hardware_class_type;
292-
#else
293290
std::string robot_hw_sim_type_str_ = control_hardware_info[i].hardware_plugin_name;
294-
#endif
295291
auto gazeboSystem = std::unique_ptr<gazebo_ros2_control::GazeboSystemInterface>(
296292
impl_->robot_hw_sim_loader_->createUnmanagedInstance(robot_hw_sim_type_str_));
297293

0 commit comments

Comments
 (0)