Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking forward to windows version! #58

Closed
youngallien opened this issue Jun 29, 2021 · 1 comment
Closed

Looking forward to windows version! #58

youngallien opened this issue Jun 29, 2021 · 1 comment
Assignees

Comments

@youngallien
Copy link

Hi, thanks for your wonderful project.
RGBDAcquisition seems to be only work on linux.
I've tried to transfer your code to windows, the "JointEstimator2D" can work normally,
but the function "std::vector runMocapNET2(
struct MocapNET2 * mnet,
struct skeletonSerialized * input,
int doLowerbody,
int doHands,
int doFace,
int doGestureDetection,
unsigned int useInverseKinematics,
int doOutputFiltering
)
and "improveBVHFrameUsingInverseKinematics"

What should I do if I only want to get the rotation and displacement of the joints?

@AmmarkoV
Copy link
Collaborator

AmmarkoV commented Jul 2, 2021

Hello, to the best of my knowledge ( users have reported this on issues ) you can already compile and use the code of this repository on windows using the Win10 linux subsystem.

The main code dependencies ( OpenCV / Tensorflow ) are cross-platform, the C++ code is also pretty vanilla..

However there are some stuff in the RGBDAcquisition code like SSE2 optimized math
https://github.com/AmmarkoV/RGBDAcquisition/blob/master/tools/AmMatrix/matrix4x4Tools.c#L986

Multi-threading code using PThreads
https://github.com/AmmarkoV/RGBDAcquisition/tree/master/tools/PThreadWorkerPool

My Codecs library
https://github.com/AmmarkoV/RGBDAcquisition/tree/master/tools/Codecs

among others that need work to get ported.

Unfortunately due to not having a Windows machine, not having any incentive to make a windows version ( I am developing this project for my PhD and the important thing is the method not the implementation ) , having barely enough time to maintain this repository in parallel to my main development snapshot I don't plan on making a windows version any time soon :( sorry about that..!

In the next version I am planning to decouple the front-end application from the pose server ( which will be a network server ) so maybe with this architecture one will be able to just host the 2D->3D "server" and use a client from windows that will be much easier to compile and maintain in both platforms, I also have no Windows machine

One way to get the data you want could potentially be to use the ROS wrapper of the project
https://github.com/FORTH-ModelBasedTracker/mocapnet_rosnode
that allows you to grab rotations/positions of the 3D points using the ROS TF tree, ( you should be able to use ROS on windows connected to a rosmaster hosted on linux )

The "best"/easiest way to get the rotation and displacement of the joints is to use this code to spit a .BVH file

and then write your own BVH parser
using as reference my C++ implementation https://github.com/AmmarkoV/RGBDAcquisition/tree/master/opengl_acquisition_shared_library/opengl_depth_and_color_renderer/src/Library/MotionCaptureLoader

or another already cross-platform bvh player like BVHPlay
https://sites.google.com/a/cgspeed.com/cgspeed/bvhplay/bvhplay-downloads-page

@AmmarkoV AmmarkoV self-assigned this Jul 2, 2021
@AmmarkoV AmmarkoV closed this as completed Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants