Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Robot not enabled not causing joint_trajectory_action to fail #486

Closed
akashjinandra opened this issue Mar 29, 2022 · 1 comment
Closed

Comments

@akashjinandra
Copy link

akashjinandra commented Mar 29, 2022

ROS_ERROR_RETURN(false, "Failed to initialize MotoRos motion, trajectory execution ABORTED. If safe, call the "

Hello I'm wondering if anybody else see's this. I'm running Ubuntu 18 with ROS melodic. But if you are sending a trajectory and the robot is not enabled. I.E you didn't call the robot_enable service. It doesn't seem like the joint trajectory action actually stops running, it just hangs. The only solution seems to be having moveit monitor the trajectory and then it catches this issue.

Is there anyway to know catch this happening besides using the moveit trajectory execution manager?

@gavanderhoorn
Copy link
Member

It's a bit of a work-around (from the action client / MoveIt perspective), but RobotStatus.motion_possible will not be true unless you've called robot_enable first.

To make the action server deal with this a bit more intelligently, we'd have to see whether ros-industrial/industrial_core#271 already solves this (as motoman_driver depends on it), or whether we need to port that PR over to the motoman_driver-specific versions of the involved files.

That would make the action server reject goals unless MotoROS reports it's ready to execute them.

@ros-industrial ros-industrial locked and limited conversation to collaborators Mar 29, 2022
@gavanderhoorn gavanderhoorn converted this issue into discussion #487 Mar 29, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Development

No branches or pull requests

2 participants