File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ trap cleanup ERR
1818# Launch controller node
1919setsid ros2 launch velocity_controller_lqr velocity_controller_lqr.launch.py &
2020CONTROLLER_PID=$!
21+ sleep 5
2122echo " 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"
3132ros2 topic pub /orca/killswitch std_msgs/msg/Bool " {data: false}" -t 5
3233ros2 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
3537echo " Waiting for wrench data..."
36- timeout 10s ros2 topic echo /orca/wrench_input --once
38+ timeout 20s ros2 topic echo /orca/wrench_input --once
3739echo " Got wrench data"
3840
3941# Terminate processes
You can’t perform that action at this time.
0 commit comments