Skip to content

Commit 589e720

Browse files
committed
test(autopilot_node_test): add sleeps and extended timeout limit
1 parent 2f092bd commit 589e720

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/ros_node_tests/lqr_autopilot_node_test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ trap cleanup ERR
1818
# Launch controller node
1919
setsid ros2 launch velocity_controller_lqr velocity_controller_lqr.launch.py &
2020
CONTROLLER_PID=$!
21+
sleep 5
2122
echo "Launched controller with PID: $CONTROLLER_PID"
2223

2324
# Check for ROS errors before continuing
@@ -31,9 +32,10 @@ echo "Turning off killswitch and setting operation mode to autonomous mode"
3132
ros2 topic pub /orca/killswitch std_msgs/msg/Bool "{data: false}" -t 5
3233
ros2 topic pub /orca/operation_mode std_msgs/msg/String "{data: 'autonomous mode'}" -t 5
3334

35+
sleep 2
3436
# Check if controller correctly publishes tau
3537
echo "Waiting for wrench data..."
36-
timeout 10s ros2 topic echo /orca/wrench_input --once
38+
timeout 20s ros2 topic echo /orca/wrench_input --once
3739
echo "Got wrench data"
3840

3941
# Terminate processes

0 commit comments

Comments
 (0)