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

Missing documentation about low_cmd.head #61

Open
SmnGdn opened this issue May 29, 2023 · 3 comments
Open

Missing documentation about low_cmd.head #61

SmnGdn opened this issue May 29, 2023 · 3 comments

Comments

@SmnGdn
Copy link

SmnGdn commented May 29, 2023

Hello,
I'm trying to control the robot using ROS, but when sending a message I don't find any documentation on what values can the low_cmd.head take. Any information on what is this field doing, and what values it can take?

Thank you

@xyq1223
Copy link

xyq1223 commented May 30, 2023

Hello, I am sorry that we do not support sending udp directly to the motor for the time being. It is recommended that you switch the unitreearm class to lowcmd to send control commands to the motor by using our SDK.

@SmnGdn
Copy link
Author

SmnGdn commented Jul 20, 2023

Just to clarify, I am using the SDK, and I am sending low_cmd messages.
For anyone having the same question, these are the values you should use:
lowCmd_message.head[0] = 0xFE;
lowCmd_message.head[1] = 0xEF;
low_cmd_ros.levelFlag = LOWLEVEL;

@xyq1223
Copy link

xyq1223 commented Aug 14, 2023

Hello,you can click the link below for reference. In line 20 of this code, udp.InitCmdData(cmd); This can automatically set the frame header.

https://github.com/unitreerobotics/unitree_legged_sdk/blob/go1/example/example_position.cpp

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