Closed zchenpds closed 3 years ago
This looks good to me, it was able to be built and run on Ubuntu 20.04, thanks for your contribution.
Sorry I was focused on the PR for Melodic branch. This PR for the foxy branch is not up-to-date with regard to the queue overflow bug that might be triggered when the k4a sampling frequency is higher than can be handled by the body tracking SDK. Could you please apply the following fix to the foxy branch? https://github.com/microsoft/Azure_Kinect_ROS_Driver/pull/161/commits/647387a906084411f5b662345b5e8fe2d60e930f
I was just going to ask about that, yes I can make that addition. Also I noticed you added a mutex to the printTimestampDebugMessage() function, should the same change be made to the foxy-devel branch?
I was just going to ask about that, yes I can make that addition.
Thank you for making the addition!
Also I noticed you added a mutex to the printTimestampDebugMessage() function, should the same change be made to the foxy-devel branch?
Yes I believe so. But I really regret writing function printTimestampDebugMessage()
in the first place. I was not aware that the command line utility rostopic echo
already had an --offset
option which displays "time in messages as offset from current time (e.g. to calculate lag/latency)". So this function is probably redundant and should be deprecated. I doubt any one except me really uses it so please feel free to delete it.
Ok, I will remove the function printTimestampDebugMessage()
from both PRs since it is redundant.
Ok, I will remove the function
printTimestampDebugMessage()
from both PRs since it is redundant.
Cool. Note that the extra time it takes for the messages to reach rostopic echo --offset
would affect the delay measurement, but presumably not by a lot.
Fixes #109
Description of the changes:
k4abt_tracker_
and publishing body_tracking_data following the suggestion from this post:Required before submitting a Pull Request:
I tested changes on:
Tested in ROS2 with rviz subscribing to
/body_tracking_data
and observed significant decrease in latency after the changes.