@@ -11,7 +11,7 @@ def result_callback(msg):
1111 print ("Action result:" , msg )
1212
1313def feedback_callback (msg ):
14- print (f"Action feedback: { msg ['partial_sequence ' ]} " )
14+ print (f"Action feedback: { msg ['sequence ' ]} " )
1515
1616def fail_callback (msg ):
1717 print (f"Action failed: { msg } " )
@@ -23,7 +23,8 @@ def test_action_success(action_client):
2323 global result
2424 result = None
2525
26- action_client .send_goal (roslibpy .ActionGoal ({"order" : 8 }),
26+ goal = roslibpy .ActionGoal ({"order" : 8 })
27+ action_client .send_goal (goal ,
2728 result_callback ,
2829 feedback_callback ,
2930 fail_callback )
@@ -44,7 +45,8 @@ def test_action_cancel(action_client):
4445 global result
4546 result = None
4647
47- goal_id = action_client .send_goal (roslibpy .ActionGoal ({"order" : 8 }),
48+ goal = roslibpy .ActionGoal ({"order" : 8 })
49+ goal_id = action_client .send_goal (goal ,
4850 result_callback ,
4951 feedback_callback ,
5052 fail_callback )
@@ -66,7 +68,7 @@ def test_action_cancel(action_client):
6668
6769 action_client = roslibpy .ActionClient (client ,
6870 "/fibonacci" ,
69- "custom_action_interfaces /action/Fibonacci" )
71+ "example_interfaces /action/Fibonacci" )
7072 print ("\n ** Starting action client test **" )
7173 test_action_success (action_client )
7274
0 commit comments