ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Onurcan

You are try to wait for result before sending goal to action server. In here

self.wait = self.client.wait_for_result()

You should do that after sending goal

self.client.send_goal(self.goal)

self.wait = self.client.wait_for_result()

Hi Onurcan

You are try to wait for result before sending goal to action server. In here

self.wait = self.client.wait_for_result()

You should do that after sending goal

self.client.send_goal(self.goal)
self.wait = self.client.wait_for_result()

self.wait = self.client.wait_for_result()and use self.client.wait_for_result() return for result variable.

Hi Onurcan

You are try to wait for result before sending goal to action server. In here

self.wait = self.client.wait_for_result()

You should do that after sending goal

self.client.send_goal(self.goal)
self.wait = self.client.wait_for_result()

and use self.client.wait_for_result() return for result variable.

In the class init you can use client.wait_for_server() function to wait for server.

Hi Onurcan

You are try trying to wait for result before sending goal to action server. In here

self.wait = self.client.wait_for_result()

You should do that after sending goal

self.client.send_goal(self.goal)
self.wait = self.client.wait_for_result()

and use self.client.wait_for_result() return for result variable.

In the class init you can use client.wait_for_server() function to wait for server.