ADVRHumanoids / TomCentauroUDP

UDP communication between TOM exoskeleton and CENTAURO robot
2 stars 1 forks source link

UDP client-server protocol #1

Open alaurenzi opened 1 year ago

alaurenzi commented 1 year ago

Hi, let's use this issue to find an agreement on the UDP protocol to be followed in the upcoming demo(s).

I have prepared a draft packet, that you can check here.

Based on this packet layout, we could implement a minimal state machine as follows.

UDP server (i.e. slave side, or robot)

See this ROS-based example.

UDP client (i.e. master side, or tele-operation device)

alaurenzi commented 1 year ago

A docker based on the latest commit of the demo2022 branch is now available for testing.

How to

@siddharthdeore

siddharthdeore commented 1 year ago

Hi @alaurenzi,

Docker image is perfect, I have updated the packet and tested it with new dummy client, pushed to the branch.

Master to Robot

Robot to Master

Thanks.

alaurenzi commented 1 year ago

Super! I am pushing the updated docker image with latest changes that you have done. Maybe you can pull it and give it a go. Then, we can move on the base motion.

alaurenzi commented 1 year ago

@siddharthdeore I added support for velocity control (useful for commanding the mobile base). Also, there is a new launch file to run the IK engine, which is kept inside this repository. The ee_id for the base control is car_frame.

Pull the image to see the changes: docker pull arturolaurenzi/tom_centauro:latest

Updated steps

siddharthdeore commented 1 year ago

Hi, @alaurenzi , I have pulled latest image with tag arturolaurenzi/tom_centauro:latest, although I see old packet structure perhaps old code inside container. For now I will manually building image and with updated source.

Can you confirm if build image is pushed to dockerhub?

PS: I have tried clearing all image cache and pulled fresh image.

Thanks

alaurenzi commented 1 year ago

My bad, should be fixed now