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

control_via_keyboard node doesn't work #50

Open
SmnGdn opened this issue Dec 11, 2022 · 6 comments
Open

control_via_keyboard node doesn't work #50

SmnGdn opened this issue Dec 11, 2022 · 6 comments

Comments

@SmnGdn
Copy link

SmnGdn commented Dec 11, 2022

Hello,
I don't know if it's only me, but the node control_via_keyboard.cpp doesn't work. The getchar() function always returns -1 and it's impossible to send any input. When checking the error, it says "resource temporarily unavailable". I tried playing around with the settings in the termios structures, but I cannot get any combination working as expected. Did anyone else have this issue and fixed it?

@MAVProxyUser
Copy link

I noticed this too... looks like the commit was added in May, I wonder if anyone actually tested it? 05e9152

@MAVProxyUser
Copy link

@SimonGodon I have fixed this problem tonight. Detail here:
https://github.com/MAVProxyUser/YushuTechUnitreeGo1/blob/main/README.md#ros1-examples

If you need help, stop by our Slack group: https://join.slack.com/t/robotdogs/shared_invite/zt-1fvixx89u-7T79~VxmDYdFSIoTnSagFQ

This also works with non EDU versions of go1.

@MAVProxyUser
Copy link

@SimonGodon here is a video showing that it works after the above patches.
https://twitter.com/d0tslash/status/1610155382772563968

@SmnGdn
Copy link
Author

SmnGdn commented Jan 17, 2023

Thank you @MAVProxyUser , that works! The only problem is that it does not publish at a frequent rate but only when a button is pressed. I think the intended behavior was to have it publishing at a constant rate, so that if you stop pushing a key, the robot stops. I've been trying to do that but didn't get it to work yet.

@xyq1223
Copy link

xyq1223 commented Mar 29, 2023

Hello,the principle of this is to keep sending commands, you can try again

@53LostNFound
Copy link

Thank you, your method helped me solve the current problem. But after modifying the code according to your method, when I run example_walk.cpp, even if I press Enter, the robot does not respond at all. What's going on?

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

4 participants