-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add displaying error msg method to controller-action-client in robot-interface.l #460
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works with kinova arm. (Related to jsk-ros-pkg/jsk_robot#1313 )
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
This should be made safer against other types of actions.
Take a look in the:action-feedback-cb
just below and notice how it verifies that the action type is correct before trying to get any values (for examplepr2_controller_msgs/JointTrajectoryActionResult
doesn't have:error_code
) -
Does
controller-result-error-to-string
needs to be defined as a global function? Is it usefull outside of this scope? If so maybe the name should be changed to something that makes more clear that it is only functional forcontrol_msgs/FollowJointTrajectoryResult
-
Maybe also consider the more universal
:status
and cases in which the error-string is empty for better error formatting? When trying on the simulator with an empty goal I got status: 5, error_code: -2, error_string: ' '
@708yamaguchi can you extend 73270ba to simulate actual error case? |
Fetch's follow joint trajectory server: Topic type
Success resultSend normal trajectory
Abort resultSend trajectory with very small time_from_start (0.1s)
Preempted resultSend other goal during another trajectory
test code: |
pr2' follow joint trajectory server topic type
Success resultSend normal trajectory
Abort resultSend trajectory with very small time_from_start (0.1s)
Preempted resultSend other goal during another trajectory
test code |
kinova' follow joint trajectory server topic type
Success resultSend normal trajectory
Abort resultpattern 1
pattern 2
Preempted resultSend other goal during another trajectory
test code: |
@Affonso-Gui
I'll use |
Sorry, I mistakenly closed this PR. I reopened. |
Changes from 0c38069
|
I changed the order of conditional branch in cond clause to make it simpler. |
melodic test fails. It seems that test-collision-object-publiser fails randomly. We created PR to solve it. |
pr2eus/robot-interface.l
Outdated
INVALID_JOINTS | ||
OLD_HEADER_TIMESTAMP | ||
PATH_TOLERANCE_VIOLATED | ||
GOAL_TOLERANCE_VIOLATED))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make these strings to avoid making new symbols?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but since there has been no mapping between these strings and error_code
yet, we will have to send a pull request to roseus or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I was unclear. I mean:
(let ((error-word '("SUCCESSFUL"
"INVALID_GOAL"
"INVALID_JOINTS"
"OLD_HEADER_TIMESTAMP"
"PATH_TOLERANCE_VIOLATED"
"GOAL_TOLERANCE_VIOLATED")))
...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. I see.
I updated in 2ce0b4c
LGTM, please pass the test. |
Could you please give us permissions to press |
sorry, i had granted write permission to developers . Please confirm you
can restart but not merge.
--
◉ Kei Okada
2022年10月18日(火) 13:58 Naoto Tsukamoto ***@***.***>:
… Could you please give us to press Re-run jobs in Github actions?
This repository does not seem to be set up yet.
—
Reply to this email directly, view it on GitHub
<#460 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADYNXGYZ7522WI5K7T635LWDYU3LANCNFSM46P7CKLA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thank you. I can push Re-run button. |
4366b2b
to
81ebea6
Compare
Thank you! |
1ec17a8
to
dbbb3d8
Compare
noetic test fails with following error. |
Test fails randomly in noetic(I do not know what is caused...), but Re-run test many times may make test pass. |
Ummm... noetic gazebo may have something weird??? |
I added action-result-cb method to controller-action-client class in robot-interface.l to display error massages in the topic
...[depending on the robots]../follow_joint_trajectory/result
. I found it good when I was running KINOVA.This allows us to see error msg in the topic through an euslisp interpreter.
cc @708yamaguchi