Skip to content

Instantly share code, notes, and snippets.

View m0rph03nix's full-sized avatar

Raphael Leber m0rph03nix

  • CPE Lyon
  • France
View GitHub Profile
@m0rph03nix
m0rph03nix / service_from_service.py
Created July 8, 2025 12:49 — forked from driftregion/service_from_service.py
Calling a ROS2 service from the callback of another service
import time
from threading import Event
from example_interfaces.srv import AddTwoInts
import rclpy
from rclpy.node import Node
from rclpy.callback_groups import ReentrantCallbackGroup
from rclpy.executors import MultiThreadedExecutor, SingleThreadedExecutor