human-dynamics-estimation icon indicating copy to clipboard operation
human-dynamics-estimation copied to clipboard

Pybindings human state

Open carloscp3009 opened this issue 1 year ago • 5 comments

This PR allows to send humanState msgs using python (in case you want to send these positions to a walking controller you should connect the ports just as shown in the commented line)

import yarp
import hde.bindings as hde

network = yarp.Network()

human_port = hde.msg.BufferedPortHumanState()
human_port.open("/portName")
# network.connect("/portName", "/walking-coordinator/humanState:i")

while True:
    human_state = human_port.prepare()
    human_state.positions = data_positions
    human_state.jointNames = data_column_names
    human_port.write()

data_positions, data_column_names are the variables that contain your data

carloscp3009 avatar Feb 12 '24 11:02 carloscp3009

@evalli-iit @claudia-lat @GiulioRomualdi @robotology/iit-ami-scrum-masters we still have Lorenzo Rapetti listed as mantainers here, do you have any idea on who can be mantainer here in place of him? If no one is available I can act as a fallback, but if we can avoid that it would be great.

traversaro avatar Feb 12 '24 12:02 traversaro

A possibility could be @davidegorbani

DanielePucci avatar Feb 12 '24 19:02 DanielePucci

@carloscp3009 when you have time (I guess post-deadline) feel free to ping me so we can go through this changes together).

traversaro avatar Feb 29 '24 15:02 traversaro

Hi @carloscp3009! In view of the imminent distro release, it would be useful to have this.

S-Dafarra avatar May 31 '24 12:05 S-Dafarra

Hi @carloscp3009! In view of the imminent distro release, it would be useful to have this.

Friendly ping

S-Dafarra avatar Jul 03 '24 15:07 S-Dafarra

Hi @carloscp3009! In view of the imminent distro release, it would be useful to have this.

I was focused on the paper and then on break, I will resume this activity this week.

carloscp3009 avatar Jul 15 '24 08:07 carloscp3009

@traversaro are there more modification to be made here?

giotherobot avatar Aug 02 '24 07:08 giotherobot

Who is going to press the green merge button? 😁

S-Dafarra avatar Aug 02 '24 08:08 S-Dafarra

Looking a bit in the history, it seems that possible mantainers (i.e. people that press the button) can be either:

  • @S-Dafarra
  • @dariosortino
  • @traversaro

I can do that myself, but probably it would be good if someone in a team actively using this repo would be the mantainer.

traversaro avatar Aug 02 '24 08:08 traversaro

I would avoid me either because my understanding of this repo as a whole is really not enough to press the green button being sure that everything won't explode

dariosortino avatar Aug 02 '24 08:08 dariosortino

From the comment above @davidegorbani is also one option and more likely to actively working on the code herein contained (and not just the configuration files like me 😊 ). Nonetheless, I can merge this one. I am going to squash and merge given the presence of the cache files in history.

S-Dafarra avatar Aug 02 '24 08:08 S-Dafarra