Skip to content
Snippets Groups Projects
Commit 87e11fb8 authored by Anton Weiss's avatar Anton Weiss
Browse files
parents e9ab25c6 0a14f9ad
No related branches found
No related tags found
No related merge requests found
File moved
......@@ -12,7 +12,7 @@ from rq_hardware.hardware_client import HardwareClient
rclpy.init()
client = HardwareClient()
client = HardwareClient(namespace="rq")
roi = PyRegionOfIntrest.dummy()
roi.dimensions_mm = roi.dimensions_mm * 100.
roi.resolution_mm = roi.resolution_mm * 10.
......
File moved
......@@ -12,8 +12,8 @@ import numpy as np
class HardwareClient(Node):
def __init__(self):
super().__init__('rq_hardware_client')
def __init__(self, **kwargs):
super().__init__('rq_hardware_client', **kwargs)
self.cli_projection = self.create_client(AquireProjection, 'aquire_projection')
while not self.cli_projection.wait_for_service(timeout_sec=1.0):
self.get_logger().info('projection service not available, waiting again...')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment