@@ -81,11 +81,11 @@ RobotManagerBase::RobotManagerBase() : kuka_drivers_core::ROS2BaseLCNode("robot_
8181
8282 // Publisher for sending cycle_time to KssMessageHandler
8383 cycle_time_pub_ = this ->create_publisher <std_msgs::msg::UInt8>(
84- " ~/ kss_message_handler/cycle_time" , rclcpp::SystemDefaultsQoS ());
84+ " kss_message_handler/cycle_time" , rclcpp::SystemDefaultsQoS ());
8585
8686 // Use the provided value to initialize the member (prevents unused-parameter warning)
8787 this ->registerParameter <int >(
88- " cycle_time" , 1 , kuka_drivers_core::ParameterSetAccessRights{true , true },
88+ " cycle_time" , 1 , kuka_drivers_core::ParameterSetAccessRights{true , false },
8989 [this ](int cycle_time)
9090 {
9191 // Set default cycle time (from parameter)
@@ -303,8 +303,9 @@ bool RobotManagerBase::ChangeCycleTime(CycleTime cycle_time)
303303 if (cycle_time != CycleTime::RSI_4MS && cycle_time != CycleTime::RSI_12MS)
304304 {
305305 RCLCPP_ERROR (
306- get_logger (), " Invalid cycle time requested: %d. Valid options are %s and %s." , cycle_time,
307- CycleTimeToString (CycleTime::RSI_4MS), CycleTimeToString (CycleTime::RSI_12MS));
306+ get_logger (), " Invalid cycle time requested: %d. Valid options are %s and %s." ,
307+ static_cast <int >(cycle_time), CycleTimeToString (CycleTime::RSI_4MS),
308+ CycleTimeToString (CycleTime::RSI_12MS));
308309 return false ;
309310 }
310311
0 commit comments