Skip to content

Instantly share code, notes, and snippets.

@tfoote
Last active June 29, 2017 21:48
Show Gist options
  • Save tfoote/aecc5cbd359c5a839d5e317b94b212c5 to your computer and use it in GitHub Desktop.
Save tfoote/aecc5cbd359c5a839d5e317b94b212c5 to your computer and use it in GitHub Desktop.
running against RTI python add_two_ints_server
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Result of add_two_ints: 1
Result of add_two_ints: 3
Result of add_two_ints: 5
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Traceback (most recent call last):
File "C:\dev\ros2\install\lib\demo_nodes_py\add_two_ints_client-script.py", line 11, in <module>
load_entry_point('demo-nodes-py==0.0.0', 'console_scripts', 'add_two_ints_client')()
File "C:\dev\ros2\install\Lib\site-packages\services\add_two_ints_client.py", line 34, in main
print('Result of add_two_ints: %d' % cli.response.sum)
AttributeError: 'NoneType' object has no attribute 'sum'
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x0000005B1FDFFB00>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Result of add_two_ints: 1
Result of add_two_ints: 3
Result of add_two_ints: 5
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Result of add_two_ints: 1
Result of add_two_ints: 3
Result of add_two_ints: 5
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Traceback (most recent call last):
File "C:\dev\ros2\install\lib\demo_nodes_py\add_two_ints_client-script.py", line 11, in <module>
load_entry_point('demo-nodes-py==0.0.0', 'console_scripts', 'add_two_ints_client')()
File "C:\dev\ros2\install\Lib\site-packages\services\add_two_ints_client.py", line 34, in main
print('Result of add_two_ints: %d' % cli.response.sum)
AttributeError: 'NoneType' object has no attribute 'sum'
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x0000004F5A74FB00>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Result of add_two_ints: 1
Result of add_two_ints: 3
Result of add_two_ints: 5
C:\dev\ros2>
# SERVER QUIT AFTER TWO??? It was restarted after the service_not_available Ctrl-C below.
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_server
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
Incoming request
a: 2 b:3
Incoming request
a: 2 b:3
C:\dev\ros2>
------
C:\dev\ros2>ros2 run demo_nodes_cpp add_two_ints_client
service not available, waiting again...
service not available, waiting again...
service not available, waiting again...
service not available, waiting again...
signal_handler(2)
add_two_ints_client was interrupted. Exiting.
C:\dev\ros2>ros2 run demo_nodes_cpp add_two_ints_client
Result of add_two_ints: 5
C:\dev\ros2>ros2 run demo_nodes_cpp add_two_ints_client
signal_handler(2)
add_two_ints_client was interrupted. Exiting.
C:\dev\ros2>
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Result of add_two_ints: 1
Result of add_two_ints: 3
Result of add_two_ints: 5
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Traceback (most recent call last):
File "C:\dev\ros2\install\lib\demo_nodes_py\add_two_ints_client-script.py", line 11, in <module>
load_entry_point('demo-nodes-py==0.0.0', 'console_scripts', 'add_two_ints_client')()
File "C:\dev\ros2\install\Lib\site-packages\services\add_two_ints_client.py", line 34, in main
print('Result of add_two_ints: %d' % cli.response.sum)
AttributeError: 'NoneType' object has no attribute 'sum'
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x0000001655B5F4A8>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Result of add_two_ints: 1
Result of add_two_ints: 3
Result of add_two_ints: 5
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Traceback (most recent call last):
File "C:\dev\ros2\install\lib\demo_nodes_py\add_two_ints_client-script.py", line 11, in <module>
load_entry_point('demo-nodes-py==0.0.0', 'console_scripts', 'add_two_ints_client')()
File "C:\dev\ros2\install\Lib\site-packages\services\add_two_ints_client.py", line 34, in main
print('Result of add_two_ints: %d' % cli.response.sum)
AttributeError: 'NoneType' object has no attribute 'sum'
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x000000F1D154FB00>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
Result of add_two_ints: 1
Result of add_two_ints: 3
Result of add_two_ints: 5
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x000000C2864EF4A8>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
response:
example_interfaces.srv.AddTwoInts_Response(sum=5)
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x000000D3426AF4A8>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
response:
example_interfaces.srv.AddTwoInts_Response(sum=5)
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x000000D7ED2FF4A8>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x00000078BF30F4A8>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 run demo_nodes_cpp add_two_ints_client
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
service not available, waiting again...
service not available, waiting again...
service not available, waiting again...
service not available, waiting again...
service not available, waiting again...
service not available, waiting again...
service not available, waiting again...
service not available, waiting again...
Number of response publishers is 0
Result of add_two_ints: 5
C:\dev\ros2>ros2 run demo_nodes_cpp add_two_ints_client
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
signal_handler(2)
add_two_ints_client was interrupted. Exiting.
C:\dev\ros2>ros2 run demo_nodes_cpp add_two_ints_client
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
signal_handler(2)
add_two_ints_client was interrupted. Exiting.
C:\dev\ros2>ros2 run demo_nodes_cpp add_two_ints_client
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
signal_handler(2)
add_two_ints_client was interrupted. Exiting.
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
Traceback (most recent call last):
File "C:\dev\ros2\install\lib\demo_nodes_py\add_two_ints_client-script.py", line 11, in <module>
load_entry_point('demo-nodes-py==0.0.0', 'console_scripts', 'add_two_ints_client')()
File "C:\dev\ros2\install\Lib\site-packages\services\add_two_ints_client.py", line 34, in main
print('Result of add_two_ints: %d' % cli.response.sum)
AttributeError: 'NoneType' object has no attribute 'sum'
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x0000009462A4FB00>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
Traceback (most recent call last):
File "C:\dev\ros2\install\lib\demo_nodes_py\add_two_ints_client-script.py", line 11, in <module>
load_entry_point('demo-nodes-py==0.0.0', 'console_scripts', 'add_two_ints_client')()
File "C:\dev\ros2\install\Lib\site-packages\services\add_two_ints_client.py", line 34, in main
print('Result of add_two_ints: %d' % cli.response.sum)
AttributeError: 'NoneType' object has no attribute 'sum'
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x0000001023B2FB00>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 run demo_nodes_py add_two_ints_client
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
Traceback (most recent call last):
File "C:\dev\ros2\install\lib\demo_nodes_py\add_two_ints_client-script.py", line 11, in <module>
load_entry_point('demo-nodes-py==0.0.0', 'console_scripts', 'add_two_ints_client')()
File "C:\dev\ros2\install\Lib\site-packages\services\add_two_ints_client.py", line 34, in main
print('Result of add_two_ints: %d' % cli.response.sum)
AttributeError: 'NoneType' object has no attribute 'sum'
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x000000B0E8A8FB00>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x000000D12129F4A8>>
Traceback (most recent call last):
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 255, in __del__
self.destroy_node()
File "C:\dev\ros2\install\Lib\site-packages\rclpy\node.py", line 224, in destroy_node
'client', cli.client_handle, self.handle)
RuntimeError: Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
Failed to fini 'client': rcl node is invalid, rcl instance id does not match, at C:\dev\ros2\src\ros2\rcl\rcl\src\rcl\node.c:346
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
response:
example_interfaces.srv.AddTwoInts_Response(sum=5)
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
response:
example_interfaces.srv.AddTwoInts_Response(sum=5)
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
response:
example_interfaces.srv.AddTwoInts_Response(sum=5)
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
response:
example_interfaces.srv.AddTwoInts_Response(sum=5)
C:\dev\ros2>ros2 service call /add_two_ints example_interfaces/AddTwoInts "{a: 2, b: 3}"
RTI Data Distribution Service Evaluation License issued to OSRF - OSRF01 dthomas@osrfoundation.org For non-production use only.
Expires on 05-may-2018 See www.rti.com for more information.
requester: making request: example_interfaces.srv.AddTwoInts_Request(a=2, b=3)
response:
example_interfaces.srv.AddTwoInts_Response(sum=5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment