You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the great effort, I noticed multiple issues in the implementation, and I want to point them out:
rate.sleep() on some machines sleeps forever, it might be better to change it to rclpy.spin_once(self._node, timeout_sec=1.0)
Consider waiting for service before checking availability (for each service): self.__service_client.wait_for_service(timeout_sec=3.0).
Starting state is None, I have to tweak the code as:
# Define starting state for the plan (default to the current state)while(start_joint_stateisNone):
self._node._logger.warn(message="Joint states are not avaliable yet!")
if(self.__joint_stateisnotNone):
start_joint_state=self.__joint_statebreakelse:
rclpy.spin_once(self._node, timeout_sec=1.0)
self._node._logger.info(message="Joint states are avaliable now")
If you please consider these changes it might enhance the API imo, thanks.
The text was updated successfully, but these errors were encountered:
Hi, thanks for the great effort, I noticed multiple issues in the implementation, and I want to point them out:
rate.sleep()
on some machines sleeps forever, it might be better to change it torclpy.spin_once(self._node, timeout_sec=1.0)
self.__service_client.wait_for_service(timeout_sec=3.0)
.None
, I have to tweak the code as:If you please consider these changes it might enhance the API imo, thanks.
The text was updated successfully, but these errors were encountered: