Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about periodic calls to rclc_executor_spin_some #414

Open
ChoiYouJung opened this issue Jan 24, 2025 · 0 comments
Open

Question about periodic calls to rclc_executor_spin_some #414

ChoiYouJung opened this issue Jan 24, 2025 · 0 comments

Comments

@ChoiYouJung
Copy link

Hello.

I am using rclc in micro-ROS in an environment without OS or RTOS. However, micro-ROS-agent is running on Linux.
And 6 subscriptions and 9 ROS Timers, including 3 500msec, 3 100msec, 2 33msec, and 1 1000msec, are operated by one executor.
Also, in the case of the 33msec Timer, a large ROS message is transmitted (one Timer is Odometry and TF message, another Timer is IMU message).
I leave the question because I want to reduce the processing time of rclc_executor_spin_some where this is handled.
When I tested it, the test results were as follows.

  • Test results
    When rclc_executor_spin_some(&executor, RCL_MS_TO_NS(1)); is called periodically, the processing time is mostly 0 or 1, and in rare cases, it takes about 5 processing times.
    When rclc_executor_spin_some(&executor, RCL_MS_TO_NS(1)); is not called periodically, the processing time is 0 to 12, and in rare cases, it takes more than 12 or up to 16.

  • Question
    When rclc_executor_spin_some(&executor, RCL_MS_TO_NS(1)); is not called periodically and rclc_executor_spin_some(&executor, RCL_MS_TO_NS(1)); I want to know the difference when calling periodically.**

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant