ADVRHumanoids / XBotControl

XBotControl framework: XBotCore + OpenSoT + CartesI/O
33 stars 3 forks source link

Time logging in autogenerated ros_executor* files #49

Closed IoannisDadiotis closed 10 months ago

IoannisDadiotis commented 2 years ago

When running cartesian interface log files are automatically generated as .mat files in the /tmp folder. ros_executor* files provide structures for the joint trajectories (position and velocity) but there is no information about the absolute time that the joint properties are sampled, thus the user has to know beforehand the frequency at which the interface is running in order to acquire the joint trajectories wrt to time.

The variables run_time and ros_time that are saved are not related with this. These consist the time needed for solving the IK and updating the IK solution (or something similar), respectively, according to @liesrock.

I suggest to augment this log file with a variable for the absolute time so that the user can reconstruct the trajectories with only the log file at hand and no prior knowledge of the logging frequency.

liesrock commented 10 months ago

@IoannisDadiotis did you add this feature ?

IoannisDadiotis commented 10 months ago

@liesrock, I didn't add this. I have binaries on my machines, so it is not so straightforward to do it.

liesrock commented 10 months ago

Ok thanks, if needed we can solve the above.

IoannisDadiotis commented 10 months ago

From my side not needed anymore.