robotology / human-dynamics-estimation

Software repository for estimating human dynamics
BSD 3-Clause "New" or "Revised" License
78 stars 28 forks source link

Pybindings human state #379

Open carloscp3009 opened 5 months ago

carloscp3009 commented 5 months ago

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

traversaro commented 5 months ago

@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.

DanielePucci commented 5 months ago

A possibility could be @davidegorbani

traversaro commented 4 months ago

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

S-Dafarra commented 1 month ago

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

S-Dafarra commented 2 weeks ago

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

Friendly ping

carloscp3009 commented 4 days ago

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.