Skip to content

Commit d7c46a1

Browse files
authored
Merge branch 'master' into fix/overruns
2 parents 3b39032 + 85508cb commit d7c46a1

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

kuka_drivers_core/src/control_node.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include <sys/mman.h>
16+
1517
#include <memory>
1618
#include <thread>
1719

18-
#include <sys/mman.h>
19-
2020
#include "controller_manager/controller_manager.hpp"
2121
#include "rclcpp/rclcpp.hpp"
2222
#include "std_msgs/msg/bool.hpp"

kuka_iiqka_eac_driver/test/test_driver_activation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def generate_test_description():
4343
),
4444
),
4545
launch.actions.TimerAction(
46-
period=10.0,
46+
period=20.0,
4747
actions=[
4848
launch.actions.ExecuteProcess(
4949
cmd=["ros2", "lifecycle", "set", "robot_manager", "configure"],
@@ -52,7 +52,7 @@ def generate_test_description():
5252
],
5353
),
5454
launch.actions.TimerAction(
55-
period=15.0,
55+
period=25.0,
5656
actions=[
5757
launch.actions.ExecuteProcess(
5858
cmd=["ros2", "lifecycle", "set", "robot_manager", "activate"],
@@ -78,6 +78,6 @@ def test_read_stdout(self, proc_output):
7878
)
7979
# Check for successful configuration and activation
8080
proc_output.assertWaitFor(
81-
"Successful 'configure' of hardware 'lbr_iisy3_r760'", timeout=15
81+
"Successful 'configure' of hardware 'lbr_iisy3_r760'", timeout=25
8282
)
83-
proc_output.assertWaitFor("Successful 'activate' of hardware 'lbr_iisy3_r760'", timeout=20)
83+
proc_output.assertWaitFor("Successful 'activate' of hardware 'lbr_iisy3_r760'", timeout=30)

kuka_rsi_driver/src/robot_manager_base.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

kuka_rsi_driver/test/test_driver_activation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def generate_test_description():
5454
)
5555
),
5656
launch.actions.TimerAction(
57-
period=10.0,
57+
period=20.0,
5858
actions=[
5959
launch.actions.ExecuteProcess(
6060
cmd=["ros2", "lifecycle", "set", "robot_manager", "configure"],
@@ -63,7 +63,7 @@ def generate_test_description():
6363
],
6464
),
6565
launch.actions.TimerAction(
66-
period=15.0,
66+
period=25.0,
6767
actions=[
6868
launch.actions.ExecuteProcess(
6969
cmd=["ros2", "lifecycle", "set", "robot_manager", "activate"],
@@ -88,5 +88,5 @@ def test_read_stdout(self, proc_output):
8888
"Setting component 'kr6_r700_sixx' to 'unconfigured' state.", timeout=5
8989
)
9090
# Check for successful configuration and activation
91-
proc_output.assertWaitFor("Successful 'configure' of hardware 'kr6_r700_sixx'", timeout=15)
92-
proc_output.assertWaitFor("Successful 'activate' of hardware 'kr6_r700_sixx'", timeout=20)
91+
proc_output.assertWaitFor("Successful 'configure' of hardware 'kr6_r700_sixx'", timeout=25)
92+
proc_output.assertWaitFor("Successful 'activate' of hardware 'kr6_r700_sixx'", timeout=30)

kuka_sunrise_fri_driver/test/test_driver_activation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def generate_test_description():
4646
}.items(),
4747
),
4848
launch.actions.TimerAction(
49-
period=15.0,
49+
period=20.0,
5050
actions=[
5151
launch.actions.ExecuteProcess(
5252
cmd=["ros2", "lifecycle", "set", "robot_manager", "configure"],
@@ -55,7 +55,7 @@ def generate_test_description():
5555
],
5656
),
5757
launch.actions.TimerAction(
58-
period=20.0,
58+
period=25.0,
5959
actions=[
6060
launch.actions.ExecuteProcess(
6161
cmd=["ros2", "lifecycle", "set", "robot_manager", "activate"],

0 commit comments

Comments
 (0)