17 Mimics (mostly) the `ifm3d config` command but communicates through the ROS 24 from ifm3d.srv
import Config
27 SRV_NAME =
"/ifm3d/camera/Config" 32 rospy.init_node(
'ifm3d_config_client')
35 j = json.load(sys.stdin)
36 rospy.wait_for_service(SRV_NAME, timeout=SRV_TIMEOUT)
37 proxy = rospy.ServiceProxy(SRV_NAME, Config)
38 resp = proxy(json.dumps(j))
40 print(
"Error: %s - %s" % (str(resp.status), resp.msg))