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

add ros<->highlevel command server #25

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

k-okada
Copy link

@k-okada k-okada commented Mar 29, 2022

ros_server_udp.cpp subscribes high_state and send to realrobot, and publishes robot status to high_cmd

The document (https://github.com/unitreerobotics/unitree_ros_to_real#run-the-package) said lcm_server do same job, but I think it just convert UDP packet to LCM packet and have nothing to do with ROS

https://github.com/unitreerobotics/unitree_legged_sdk/blob/f3b318a691e744e28caf6787eec90288f4016e87/include/unitree_legged_sdk/lcm_server.h#L94-L99

(and moreover, it needs

// need to keep original cmd.head to move robots
    std::array<uint8_t, 2> head = cmd.head;
    cmd = ToLcm(SendHighROS, cmd);
    cmd.head = head;

to control robot via UDP.

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

Successfully merging this pull request may close these issues.

5 participants