Skip to content
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

Incorrect error message for StartTrajMode #192

Closed
ted-miller opened this issue Nov 22, 2023 · 0 comments · Fixed by #297
Closed

Incorrect error message for StartTrajMode #192

ted-miller opened this issue Nov 22, 2023 · 0 comments · Fixed by #297
Assignees
Labels
bug Something isn't working rv:0.1.1 Reported in MotoROS2 0.1.1
Milestone

Comments

@ted-miller
Copy link
Collaborator

I got the robot into an error state by pressing HOLD during an FJT routine.

[1700669032.41332889] [192.168.1.31:54399]: 2023-11-22 16:03:52.412220 mpExRcsIncrementMove returned -1 (Not executing WAIT instruction)
[1700669032.43213272] [192.168.1.31:54399]: 2023-11-22 16:03:52.431020 Alarm/error occurred while executing trajectory. Aborting.
[1700669032.43316460] [192.168.1.31:54399]: 2023-11-22 16:03:52.432220 Stopping all motion
[1700669032.46177649] [192.168.1.31:54399]: 2023-11-22 16:03:52.460620 FJT action complete

When I tried to call /StartTrajMode, I got:

ted@ted-Ubuntu:~$ ros2 service call /start_traj_mode motoros2_interfaces/srv/StartTrajMode
requester: making request: motoros2_interfaces.srv.StartTrajMode_Request()

response:
motoros2_interfaces.srv.StartTrajMode_Response(result_code=motoros2_interfaces.msg.MotionReadyEnum(value=106), message='Servo power is OFF. Please call start_traj_mode or start_point_queue_mode service')

This error message is incorrect and confusing.

MotoROS2 log:

[1700671198.53841758] [192.168.1.31:54399]: 2023-11-22 16:39:58.536889 Ros_MotionControl_StartMotionMode: enter
[1700671198.53868961] [192.168.1.31:54399]: 2023-11-22 16:39:58.537689 Controller is in a fault state. Please call /reset_error
[1700671198.53889847] [192.168.1.31:54399]: 2023-11-22 16:39:58.537889 Ros_ServiceStartTrajMode_Trigger: Servo power is OFF. Please call start_traj_mode or start_point_queue_mode service (106)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment