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

RTC SWITCH turned OFF 0: ano:1 #40

Open
frash83 opened this issue May 14, 2020 · 6 comments
Open

RTC SWITCH turned OFF 0: ano:1 #40

frash83 opened this issue May 14, 2020 · 6 comments

Comments

@frash83
Copy link

frash83 commented May 14, 2020

How can I debug this issue?

RTC SWITCH turned OFF 0: ano:1

It happens 9 out of 10 times!

@d-nakamichi
Copy link
Contributor

Robot controller executes a robot program using RTC_SWITCH during ROS control.
This robot program may be holded due to something (error, external hold, etc.).
Could you look at your teach pendant and check the status of robot program named "rb_rtc1"?

@frash83
Copy link
Author

frash83 commented May 15, 2020

I mean it is fine exactly the same as RTC_SWITCH turned off!
RUN > MOTOR > CYCLE [green] and I can see rb_rtc1 as well
I think after CYCLE, I should not UpdateState very fast ... I should wait a little for RTC_SWITCH to sync? Is that right?

@d-nakamichi
Copy link
Contributor

I think after CYCLE, I should not UpdateState very fast ... I should wait a little for RTC_SWITCH to sync? Is that right?

Driver waits a RTC_SWITCH's ON when ACTIVATING state is run, so it may be not a problem...
Could you show the entire terminal output?

@frash83
Copy link
Author

frash83 commented May 18, 2020

This is a sample output:

[2020-05-13 16:51:51.366] [info] [khi_driver.h:201] [KhiKrnxDriver] KRNX Linux64 DEV 008 2019/02/04 17:43
[2020-05-13 16:51:51.366] [info] [khi_driver.h:201] [KhiKrnxDriver] Connecting to real controller: 10.10.1.111
[2020-05-13 16:51:53.004] [info] [khi_driver.h:169] [KhiKrnxDriver] State CHANGE 0: NOT_CONNECTED -> CONNECTED
[2020-05-13 16:51:54.085] [info] [khi_driver.h:169] [KhiKrnxDriver] State CHANGE 0: CONNECTED -> ACTIVATING
[2020-05-13 16:51:55.402] [info] [khi_driver.h:169] [KhiKrnxDriver] State CHANGE 0: ACTIVATING -> ACTIVE
[2020-05-13 16:51:55.404] [error] [khi_driver.h:211] [KhiKrnxDriver] RTC SWITCH turned OFF 0: ano:1
[2020-05-13 16:51:55.409] [info] [khi_driver.h:169] [KhiKrnxDriver] State CHANGE 0: ACTIVE -> CONNECTED
[2020-05-13 16:51:55.473] [error] [khi_driver.cpp:261] An error has occured, to resume control of the robot:

@d-nakamichi
Copy link
Contributor

[2020-05-13 16:51:51.366] [info] [khi_driver.h:201] [KhiKrnxDriver] KRNX Linux64 DEV 008 2019/02/04 17:43

Your driver is old alpha test version (not released in this GitHub repository) and may have some ploblems.
Could you try our latest version (master) instead of old one?

@frash83
Copy link
Author

frash83 commented Aug 18, 2020

By adding some delay (time.sleep(x)) between activation and rtc switch, it has been solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants