Skip to content

Commit

Permalink
Update ros-humble-gazebo-ros2-control.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer committed Feb 14, 2024
1 parent 02a2846 commit 40172f2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions patch/ros-humble-gazebo-ros2-control.patch
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,23 @@ index 1ed72fc..6015669 100644
}
RCLCPP_INFO(
model_nh_->get_logger(), "Received urdf from param server, parsing...");
diff --git a/gazebo_ros2_control/CMakeLists.txt b/gazebo_ros2_control/CMakeLists.txt
index cfba129..b954ccc 100644
--- a/gazebo_ros2_control/CMakeLists.txt
+++ b/gazebo_ros2_control/CMakeLists.txt
@@ -30,6 +30,7 @@ link_directories(
add_library(${PROJECT_NAME} SHARED
src/gazebo_ros2_control_plugin.cpp
)
+target_compile_definitions(${PROJECT_NAME} PRIVATE "_USE_MATH_DEFINES")
ament_target_dependencies(${PROJECT_NAME}
angles
controller_manager
@@ -44,6 +45,7 @@ ament_target_dependencies(${PROJECT_NAME}
add_library(gazebo_hardware_plugins SHARED
src/gazebo_system.cpp
)
+target_compile_definitions(gazebo_hardware_plugins PRIVATE "_USE_MATH_DEFINES")
ament_target_dependencies(gazebo_hardware_plugins
angles
gazebo_dev

0 comments on commit 40172f2

Please sign in to comment.