ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Looks like it has to do with the ROS version of OpenNI, as saving to file works when using the unstable version of OpenNI. Refer to the original post for a link to instructions on how to do that.
Special thanks to Miguel Prada and Asomerville!
2 | No.2 Revision |
Looks like it has to do with the ROS version of OpenNI, as saving to file works when using the unstable version of OpenNI. Refer to the original post for a link to instructions on how to do that.
Special thanks to Miguel Prada and Asomerville!
edit: For those who wish to test this for themselves, after installing OpenNI, from OpenNI/Samples/NiUserTracker/, copy the following files to a new directory: SceneDrawer.cpp SceneDrawer.h main.cpp
Open up main.cpp and after line 124, paste
g_UserGenerator.GetSkeletonCap().SaveCalibrationDataToFile(nId, "calibration.bin")
and then compile the file with g++:
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
This will simply save the calibration of any user who performs the psi pose (continuously overwriting the .bin file). This is meant to just be a quick demo to make sure saving calibration data to file works. There is already a function on line 167 that is supposed to save calibration when the s key is pushed, but I must be using it wrong because I didn't get it working and don't really care for the feature.
3 | No.3 Revision |
Looks like it has to do with the ROS version of OpenNI, as saving to file works when using the unstable version of OpenNI. Refer to the original post for a link to instructions on how to do that.
Special thanks to Miguel Prada and Asomerville!
edit: For those who wish to test this for themselves, themselves (specifically qdocehf cough cough), after installing OpenNI, from OpenNI/Samples/NiUserTracker/, copy the following files to a new directory: SceneDrawer.cpp
SceneDrawer.h main.cpp
Open up main.cpp and after line 124, paste
g_UserGenerator.GetSkeletonCap().SaveCalibrationDataToFile(nId, "calibration.bin")
and then compile the file with g++:
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
This will simply save the calibration of any user who performs the psi pose (continuously overwriting the .bin file). This is meant to just be a quick demo to make sure saving calibration data to file works. There is already a function on line 167 that is supposed to save calibration when the s key is pushed, but I must be using it wrong because I didn't get it working and don't really care for the feature.
4 | No.4 Revision |
Looks like it has to do with the ROS version of OpenNI, as saving to file works when using the unstable version of OpenNI. Refer to the original post for a link to instructions on how to do that.
Special thanks to Miguel Prada and Asomerville!
edit: For those who wish to test this for themselves (specifically qdocehf cough cough), after installing OpenNI, from OpenNI/Samples/NiUserTracker/, copy the following files to a new directory: SceneDrawer.cpp SceneDrawer.h main.cpp
Open up main.cpp and after line 124, paste
g_UserGenerator.GetSkeletonCap().SaveCalibrationDataToFile(nId, "calibration.bin")
and then compile the file with g++:
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
This will simply save the calibration of any user who performs the psi pose (continuously overwriting the .bin file). This is meant to just be a quick demo to make sure saving calibration data to file works. There is already a function on line 167 that is supposed to save calibration when the s key is pushed, but I must be using it wrong because I didn't get it working and don't really care for the feature.
5 | No.5 Revision |
Looks like it has to do with the ROS version of OpenNI, as saving to file works when using the unstable version of OpenNI. Refer to the original post for a link to instructions on how to do that.
Special thanks to Miguel Prada and Asomerville!
edit: For those who wish to test this for themselves (specifically qdocehf cough cough), after installing OpenNI, from OpenNI/Samples/NiUserTracker/, OpenNI navigate to the folder OpenNI/Samples/NiUserTracker/ and copy the following files to a new directory: SceneDrawer.cpp
SceneDrawer.h main.cpp
Open up main.cpp and after line 124, paste
g_UserGenerator.GetSkeletonCap().SaveCalibrationDataToFile(nId, "calibration.bin")
and then compile the file with g++:
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
This will simply save the calibration of any user who performs the psi pose (continuously overwriting the .bin file). This is meant to just be a quick demo to make sure saving calibration data to file works. There is already a function on line 167 that is supposed to save calibration when the s key is pushed, but I must be using it wrong because I didn't get it working and don't really care for it enough to figure it out.
6 | No.6 Revision |
Looks like it has to do with the ROS version of OpenNI, as saving to file works when using the unstable version of OpenNI. Refer to the original post for a link to instructions on how to do that.
Special thanks to Miguel Prada and Asomerville!
edit: For those who wish to test this for themselves (specifically qdocehf cough cough), after installing OpenNI navigate to the folder OpenNI/Samples/NiUserTracker/ and copy the following files to a new directory: SceneDrawer.cpp SceneDrawer.h main.cpp
Open up main.cpp and after line 124, paste
g_UserGenerator.GetSkeletonCap().SaveCalibrationDataToFile(nId, "calibration.bin")
and then compile the file with g++:
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
This will simply save the calibration of any user who performs the psi pose (continuously overwriting the .bin file). This is meant to just be a quick demo to make sure saving calibration data to file works. There is already a function on line 167 that is supposed to save calibration when the s key is pushed, but I must be using it wrong because I didn't get it working and don't really care for it enough to figure it out.
edit2: For testing loading calibration files, around line 90 of main.cpp, just paste in the following code:
g_UserGenerator.GetSkeletonCap().LoadCalibrationDataFromFile(nId, "calibration.bin");
g_UserGenerator.GetPoseDetectionCap().StopPoseDetection(nId);
g_UserGenerator.GetSkeletonCap().StartTracking(nId);
This will simply load up a calibration file as soon as a new user detected, so you'll want to fiddle around some more with code to make sure a calibration file is available, make sure its not requesting calibration after loading, etc...
7 | No.7 Revision |
Looks like it has to do with the ROS version of OpenNI, as saving to file works when using the unstable version of OpenNI. Refer to the original post for a link to instructions on how to do that.
Special thanks to Miguel Prada and Asomerville!
edit: For those who wish to test this for themselves (specifically qdocehf cough cough), after installing OpenNI navigate to the folder OpenNI/Samples/NiUserTracker/ and copy the following files to a new directory: SceneDrawer.cpp SceneDrawer.h main.cpp
Open up main.cpp and after line 124, paste
g_UserGenerator.GetSkeletonCap().SaveCalibrationDataToFile(nId, "calibration.bin")
and then compile the file with g++:
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
This will simply save the calibration of any user who performs the psi pose (continuously overwriting the .bin file). This is meant to just be a quick demo to make sure saving calibration data to file works. There is already a function on line 167 that is supposed to save calibration when the s key is pushed, but I must be using it wrong because I didn't get it working and don't really care for it enough to figure it out.
edit2: For testing loading calibration files, around line 90 of main.cpp, just paste in the following code:
g_UserGenerator.GetSkeletonCap().LoadCalibrationDataFromFile(nId, "calibration.bin");
g_UserGenerator.GetPoseDetectionCap().StopPoseDetection(nId);
g_UserGenerator.GetSkeletonCap().StartTracking(nId);
This will simply load up a calibration file as soon as a new user detected, so you'll want to fiddle around some more with code to make sure a calibration file is available, make sure its not requesting calibration after loading, etc...
8 | No.8 Revision |
Looks like it has to do with the ROS version of OpenNI, as saving to file works when using the unstable version of OpenNI. Refer to the original post for a link to instructions on how to do that.
Special thanks to Miguel Prada and Asomerville!
edit: For those who wish to test this for themselves (specifically qdocehf cough cough), after installing OpenNI navigate to the folder OpenNI/Samples/NiUserTracker/ and copy the following files to a new directory: SceneDrawer.cpp SceneDrawer.h main.cpp
Open up main.cpp and after line 124, paste
g_UserGenerator.GetSkeletonCap().SaveCalibrationDataToFile(nId, "calibration.bin")
and then compile the file with g++:
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
This will simply save the calibration of any user who performs the psi pose (continuously overwriting the .bin file). This is meant to just be a quick demo to make sure saving calibration data to file works. There is already a function on line 167 that is supposed to save calibration when the s key is pushed, but I must be using it wrong because I didn't get it working and don't really care for it enough to figure it out.
edit2: For testing loading calibration files, around line 90 of main.cpp, just paste in the following code:
g_UserGenerator.GetSkeletonCap().LoadCalibrationDataFromFile(nId, "calibration.bin");
g_UserGenerator.GetPoseDetectionCap().StopPoseDetection(nId);
g_UserGenerator.GetSkeletonCap().StartTracking(nId);
This will simply load up a calibration file as soon as a new user detected, so you'll want to fiddle around some more with code to make sure a calibration file is available, make sure its not requesting calibration after loading, etc...
9 | No.9 Revision |
Looks like it has to do with the ROS version of OpenNI, as saving to file works when using the unstable version of OpenNI. Refer to the original post for a link to instructions on how to do that.
Special thanks to Miguel Prada and Asomerville!
edit: For those who wish to test this for themselves (specifically qdocehf cough cough), after installing OpenNI navigate to the folder OpenNI/Samples/NiUserTracker/ and copy the following files to a new directory: SceneDrawer.cpp SceneDrawer.h main.cpp
Open up main.cpp and after line 124, paste
g_UserGenerator.GetSkeletonCap().SaveCalibrationDataToFile(nId, "calibration.bin")
and then compile the file with g++:
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
This will simply save the calibration of any user who performs the psi pose (continuously overwriting the .bin file). This is meant to just be a quick demo to make sure saving calibration data to file works. There is already a function on line 167 that is supposed to save calibration when the s key is pushed, but I must be using it wrong because I didn't get it working and don't really care for it enough to figure it out.
edit2: For testing loading calibration files, around line 90 of main.cpp, just paste in the following code:
g_UserGenerator.GetSkeletonCap().LoadCalibrationDataFromFile(nId, "calibration.bin");
g_UserGenerator.GetPoseDetectionCap().StopPoseDetection(nId);
g_UserGenerator.GetSkeletonCap().StartTracking(nId);
This will simply load up a calibration file as soon as a new user detected, so you'll want to fiddle around some more with code to make sure a calibration file is available, make sure its not requesting calibration after loading, etc...
10 | No.10 Revision |
Looks like it has to do with the ROS version of OpenNI, as saving to file works when using the unstable version of OpenNI. Refer to the original post for a link to instructions on how to do that.
Special thanks to Miguel Prada and Asomerville!
edit: For those who wish to test this for themselves (specifically qdocehf cough cough), after installing OpenNI navigate to the folder OpenNI/Samples/NiUserTracker/ and copy the following files to a new directory: SceneDrawer.cpp SceneDrawer.h main.cpp
Open up main.cpp and after line 124, 146, paste
g_UserGenerator.GetSkeletonCap().SaveCalibrationDataToFile(nId, "calibration.bin")
and then compile the file with g++:
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
This will simply save the calibration of any user who performs the psi pose (continuously overwriting the .bin file). This is meant to just be a quick demo to make sure saving calibration data to file works. There is already a function on line 167 that is supposed to save calibration when the s key is pushed, but I must be using it wrong because I didn't get it working and don't really care for it enough to figure it out.
edit2: For testing loading calibration files, around line 90 of main.cpp, just paste in the following code:
g_UserGenerator.GetSkeletonCap().LoadCalibrationDataFromFile(nId, "calibration.bin");
g_UserGenerator.GetPoseDetectionCap().StopPoseDetection(nId);
g_UserGenerator.GetSkeletonCap().StartTracking(nId);
This will simply load up a calibration file as soon as a new user detected, so you'll want to fiddle around some more with code to make sure a calibration file is available, make sure its not requesting calibration after loading, etc...