Skip to content

pjsdream/pcpred

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pcpred

Dynamic obstacle prediction with BVH motion file as input

  • example code:
#include <pcpred/prediction/bvh_predictor.h>
using namespace pcpred;
...
BvhPredictor predictor("../data/bvh/walking.bvh");
predictor.setTimestep(0.1);
...
while (true)
{
  predictor.moveToNextFrame();

  predictor.visualizeHuman();

  double time = 0.0;
  while (time <= 0.3)
  {
    predictor.visualizePrediction(time);
    time += 0.05;
  }
}

More details in pcpred/src/test_bvh_prediction.cpp

Dynamic obstacle prediction with point cluod input

  • example code 1:
#include <pcpred/prediction/gvv_predictor.h>
using namespace pcpred;
...
GvvPredictor predictor(1); // sequence number
predictor.setTimestep(0.1);
...
while (true)
{
  predictor.moveToNextFrame();

  predictor.visualizePointcloud();
  predictor.visualizeHuman();

  double time = 0.0;
  while (time <= 0.3)
  {
    predictor.visualizePrediction(time);
    time += 0.05;
  }
}
  • example code 2:
#include <pcpred/prediction/kinect_predictor.h>
using namespace pcpred;
...
KinectPredictor predictor(1); // sequence number
predictor.setTimestep(0.1);
...
while (true)
{
  predictor.moveToNextFrame();

  predictor.visualizePointcloud();
  predictor.visualizeHuman();

  double time = 0.0;
  while (time <= 0.3)
  {
    predictor.visualizePrediction(time);
    time += 0.05;
  }
}

More details in pcpred/src/test_gvvdata_prediction.cpp and pcpred/src/test_kinect_prediction.cpp

How to run

  1. Install ROS

  2. Downlaod Eigen3 and put the source folder into
    pcpred/include/

    To run with point cloud data captured by MPI GVV group, download sequences from http://gvvperfcapeva.mpi-inf.mpg.de/public/InertialDepthTracker/index.php and unzip at
    pcpred/data/

    Unzip C1C2.tar.gz and move C1/ and C2/ directories to pcpred/data/

  3. Build with
    pcpred/CMakeLists.txt

  4. Launch pcpred/launch/test.launch
    e.g. $ roslaunch pcpred test.launch

  5. Run test programs

  6. BVH motion input

    run pcpred/bin/test_bvh_prediction with the first argument the bvh filename
    e.g. $ ./test_bvh_prediction ../data/bvh/walking.bvh

  7. MPI GVV point cloud input

    run pcpred/bin/test_gvvdata_prediction with the first argument the sequence number
    e.g. $ ./test_gvvdata_prediction 1

  8. Kinect point cloud input

    run pcpred/bin/test_kinect_prediction with the first argument the sequence number e.g. $ ./test_kinect_prediction 1

About

pointcloud prediction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published