Commits

Nicolas Saunier committed e37f382

fixed compiling issue with size()

  • Participants
  • Parent commits 018653d

Comments (0)

Files changed (2)

File c/feature-based-tracking.cpp

   for (unsigned int frameNum = params.frame1; (frameNum < lastFrameNum) && !::interruptionKey(key); frameNum++) {
       bool success = capture->getNextFrame(frame);
       if (!success || frame.empty() || frame.size() != videoSize) {
-	cout << "Empty frame " << frameNum << ", breaking (" << success << " " << frame.empty() << " " << frame.size() << ")" << endl;
+	cout << "Empty frame " << frameNum << ", breaking (" << success << " " << frame.empty() << " [" << frame.size().width << "x" << frame.size().height << "])" << endl;
 	break;
       } else if (frameNum%50 ==0)
 	cout << "frame " << frameNum << endl;

File scripts/safety-analysis.py

 #! /usr/bin/env python
 
-import utils, storage, prediction, events, moving
+import storage, prediction, events, moving
 
 import sys, argparse, random
 
 parser.add_argument('--display-cp', dest = 'displayCollisionPoints', help = 'display collision points', action = 'store_true')
 args = parser.parse_args()
 
-params = utils.TrackingParameters()
+params = storage.TrackingParameters()
 params.loadConfigFile(args.configFilename)
 
 # parameters for prediction methods
 accelerationDistribution = lambda: random.triangular(-params.maxNormalAcceleration, params.maxNormalAcceleration, 0.)
 steeringDistribution = lambda: random.triangular(-params.maxNormalSteering, params.maxNormalSteering, 0.)
 
-if predictionMethod == 'cvd':
+if predictionMethod == 'cvd': # TODO add cve: constant velocity exact (Sohail's)
     predictionParameters = prediction.CVDirectPredictionParameters()
 elif predictionMethod == 'cv':
     predictionParameters = prediction.ConstantPredictionParameters(params.maxPredictedSpeed)