ROS2 Action Server: Delay Execution

Medium Actions 0% pass rate

Practice the ROS2 Action Server: Delay Execution coding problem in Actions. Browser-based execution with automated grading — no local ROS install required. 0% of engineers pass this challenge.

Problem Statement

Implement an action that simulates work by sleeping. This tests your understanding of concurrency in Actions.

Requirements

  • Action Name sleep_action
  • Goal: seconds (int)
  • Feedback: time_left
  • Result: success (bool)
  • Logic: Sleep for seconds, publishing feedback every 1s.

Input/Output Format

Input:

  • Goal: 5 seconds

Output:

  • Feedback: 4, 3, 2, 1
  • Result: True

⚠️ Common Pitfalls

  • Blocking the main thread if not using MultiThreadedExecutor or async/await patterns.

📚 Helpful Resources

Frequently asked questions

What is the ROS2 Action Server: Delay Execution practice problem?

It is a hands-on Actions challenge on SimuCode where you implement and run ROS2 code in the browser with runtime-verified tests.

How do I practice ROS2 Action Server: Delay Execution online?

Open this page, sign in, and solve the problem in the built-in IDE. Your solution is graded against real ROS2 execution checks.

What skills does ROS2 Action Server: Delay Execution test?

This Medium problem focuses on Actions skills used in robotics interviews and production systems.