diff --git a/canopen_motor_node/include/canopen_motor_node/handle_layer.h b/canopen_motor_node/include/canopen_motor_node/handle_layer.h index 931ef37a0..13617609a 100644 --- a/canopen_motor_node/include/canopen_motor_node/handle_layer.h +++ b/canopen_motor_node/include/canopen_motor_node/handle_layer.h @@ -7,7 +7,12 @@ #include #include #include +#include // for ROS_VERSION_MINIMUM +#if ROS_VERSION_MINIMUM(1, 15, 0) +#include +#else #include +#endif #include #include #include