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
>python3>importaction_client>action_client.GoalStatus.to_string(0)
'_has_header'# THE RESULT
I got the "_has_header" as the result instead of "PENDING"
So, the suggestion might be putting the condition of the dict 's key not to start with an underscore ("_") would solve this problem and get the CONSTANT "PENDING" as the key in string type (that we're asking for)
ROS1 Noetic
Ubuntu 20.04
The text was updated successfully, but these errors were encountered:
tutorgaming
pushed a commit
to tutorgaming/actionlib
that referenced
this issue
Feb 6, 2023
while I've been working with custom action client
I found that in function to_string (in "action_client.py")
https://github.com/ros/actionlib/blob/noetic-devel/actionlib/src/actionlib/action_client.py#L64
to be used in this definition in line 92
If I run the following code with python3,
I got the "_has_header" as the result instead of "PENDING"
So, the suggestion might be putting the condition of the dict 's key not to start with an underscore ("_") would solve this problem and get the CONSTANT "PENDING" as the key in string type (that we're asking for)
ROS1 Noetic
Ubuntu 20.04
The text was updated successfully, but these errors were encountered: