Skip to content

Commit 4ea1160

Browse files
author
Murilo Marinho
committed
[python_package_that_uses_the_services] Fixing node names and syntax.
1 parent 621744f commit 4ea1160

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,14 @@ def timer_callback(self):
5555
"""Method that is periodically called by the timer."""
5656

5757
request = AddPoints.Request()
58-
request.a = random.uniform(0, 1000)
59-
request.b = random.uniform(0, 1000)
58+
59+
request.a.x = random.uniform(0, 1000)
60+
request.a.y = random.uniform(0, 1000)
61+
request.a.y = random.uniform(0, 1000)
62+
63+
request.b.x = random.uniform(0, 1000)
64+
request.b.y = random.uniform(0, 1000)
65+
request.b.z = random.uniform(0, 1000)
6066

6167
if self.future is not None and not self.future.done():
6268
self.future.cancel() # Cancel the future. The callback will be called with Future.result == None.
File renamed without changes.

ros2_tutorial_workspace/src/python_package_that_uses_the_services/setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
tests_require=['pytest'],
2121
entry_points={
2222
'console_scripts': [
23-
'what_is_the_point_service_client_node = '
24-
'python_package_that_uses_the_services.what_is_the_point_service_client_node:main',
25-
'what_is_the_point_service_server_node = '
26-
'python_package_that_uses_the_services.what_is_the_point_service_server_node:main'
23+
'add_points_service_client_node = '
24+
'python_package_that_uses_the_services.add_points_service_client_node:main',
25+
'add_points_service_server_node = '
26+
'python_package_that_uses_the_services.add_points_service_server_node:main'
2727
],
2828
},
2929
)

0 commit comments

Comments
 (0)