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

Problem with LCM server #20

Closed
AlaricLcrs opened this issue Sep 22, 2021 · 9 comments
Closed

Problem with LCM server #20

AlaricLcrs opened this issue Sep 22, 2021 · 9 comments

Comments

@AlaricLcrs
Copy link

Hello ! I have an a1 robot and have successfully setup my workspace. But form times to times, I get the following error when I run the robot in high level mode for example (roslaunch mbs_unitree_ros high_level_mode.launch) :

[node_lcm_server-2] process has died [pid 6969, exit code 255, cmd /home/amin/catkin_ws/devel/lib/unitree_legged_real/lcm_server_3_2 a1 highlevel __name:=node_lcm_server __log:=/root/.ros/log/37556312-1b72-11ec-a5c3-000c296e3085/node_lcm_server-2.log].
log file: /root/.ros/log/37556312-1b72-11ec-a5c3-000c296e3085/node_lcm_server-2*.log

It occurs very randomly but often enough to become a problem. It usually works for a few minutes if I'm lucky and then I get the error, it doesn't occur right after I run the command. And I've tried to check the log file (/root/.ros/log/37556312-1b72-11ec-a5c3-000c296e3085/node_lcm_server-2*.log) but it doesn't exist though the folder does (and contains other log files). Any idea on how to solve it ?

PS : Here's the whole return message that I get.
log.txt

@yiyuc
Copy link

yiyuc commented Sep 22, 2021 via email

@AlaricLcrs
Copy link
Author

AlaricLcrs commented Sep 23, 2021

Thank you for this answer ! However, I'm not running gazebo, I'm using the real life robot so naturally i can't find a gzserver process to kill :') Is there another process that I should kill that'd be related to the use of the real robot ?
Best,
Alaric

@yiyuc
Copy link

yiyuc commented Sep 23, 2021 via email

@AlaricLcrs
Copy link
Author

Thanks for your quick reply !

I'm running Ubuntu on a virtual machine on a MacBook 😅
How would I use the sdk without ROS ? I thought I needed to use both of them to get the robot running

Best,
Alaric

@yiyuc
Copy link

yiyuc commented Sep 23, 2021 via email

@AlaricLcrs
Copy link
Author

Yes, the SDK is already installed on my workspace and I can start the lcm server but to communicate with the robot I still have to use ROS, no ? I didn't find instructions related to that there

@yiyuc
Copy link

yiyuc commented Sep 24, 2021

Check this repo, https://github.com/unitreerobotics/unitree_legged_sdk although the Aliengo robot uses version 3_2, but the build instruction is the same. You can run the example files by sudo ./example_

@AlaricLcrs
Copy link
Author

AlaricLcrs commented Sep 29, 2021

Okay thanks, it works now ! And last question I have : I've seen videos of the A1 dancing or doing backflips, is there an existing code that I could get or should I write the code myself ? And also is it possible to implement a few of my programs directly on the remote controller ? For instance I have a python code that makes the robot make a U-turn, could I put in on the remote so that just by pressing a button it would execute the program ? I haven't found anything about that on the Internet
Thanks !

Best,
Alaric

@yiyuc
Copy link

yiyuc commented Oct 11, 2021

There is no existing code for the dancing/backflips in the repo, but you can always develop it with the low level control mode. For dancing, it's some development in the controller, and for backflip, you would need trajectory optimization. There is one header file in the SDK (joystick.h) that translates the remote control command so you can program your custom key bindings for your case

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