Skip to content

Publish low level data on ROS in C++ on Aliengo without sending commands #84

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

Open
mcamurri opened this issue May 29, 2025 · 0 comments
Open

Comments

@mcamurri
Copy link

Dear unitree developers,

I am trying to obtain telemetry from the robot at a constant rate on our Aliengo robot.

Based on this example: https://github.com/unitreerobotics/unitree_ros_to_real/blob/Aliengo/unitree_legged_real/src/exe/ros_udp.cpp
I've made a modified version that publishes at constant rate rather than waiting for a command to be sent to the robot, eg. by moving the following lines:

low_state_ros = state2rosMsg(custom.low_state);
pub_low.publish(low_state_ros);

after the data is received from the robot, here:

low_udp.Recv();
low_udp.GetRecv(low_state);
}

However, the returned values are always empty and it is hard for me to understand how to fix this.

I initially tried to send an empty command at the beginning of the program and that seemed to have worked, but the next day I tried again and only one valid piece of data is sent, then all subsequent messages are identical to the first one.

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

1 participant