Skip to content

Instantly share code, notes, and snippets.

@tfoote
Last active June 29, 2017 22:07
Show Gist options
  • Save tfoote/5810bbc1a4f88f14cda29cd8094405b1 to your computer and use it in GitHub Desktop.
Save tfoote/5810bbc1a4f88f14cda29cd8094405b1 to your computer and use it in GitHub Desktop.
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
Result of add_two_ints: 5
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
Result of add_two_ints: 5
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
Result of add_two_ints: 5
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_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
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
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)
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)
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)
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)
response:
example_interfaces.srv.AddTwoInts_Response(sum=5)
C:\dev\ros2>
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 0x000000E59B53F4A8>>
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)
Exception ignored in: <bound method Node.__del__ of <rclpy.node.Node object at 0x00000067E8BFF4A8>>
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>
C:\dev\ros2>
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 0x00000048DDC1F4A8>>
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_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 0x0000000AC57FFB00>>
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 0x000000579B56F4A8>>
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_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 0x0000000CED8EFB00>>
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 0x0000009D510BFB00>>
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_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>
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment