tvaLib
Public Member Functions | Public Attributes | List of all members
include.config.PredictionParams Class Reference

Public Member Functions

def __init__ (self, protocol='ccc', maxSpeed=50, nPredictedTrajectories=3, minAcceleration=-2.0, maxAcceleration=2.0, maxSteering=0.2, useFeatures=False, mps_to_kmh=3.6, timeHorizon=1.5, speedBinNum=7, curvilinearBinSize=3, motPatBinNum=40, minSampleSize=50, probRetentionThreshold=0.00001, motPatBinSize=[1, xy_bounds=None, allowImport=True, importLocations='', customSpeedRange=None, results_path='', verbose=0, version='')
 
def setCameraSettings (self, framerate=15.0, alignments=None)
 
def setAccelerationDistribution (self, value)
 
def setSteeringDistribution (self, value)
 
def getMaxSpeed (self)
 
def getNPredictedTrajectories (self)
 
def getMinAcceleration (self)
 
def getMaxAcceleration (self)
 
def getMaxSteering (self)
 
def getUseFeatures (self)
 
def getAccelerationDistribution (self)
 
def getSteeringDistribution (self)
 
def getMinSampleSize (self)
 
def getProbRetentionThreshold (self)
 
def getAlignments (self)
 
def getSpeed_conv (self)
 
def getTimeHorizon (self)
 
def getSpeedBinNum (self)
 
def getCurvilinearBinSize (self)
 
def getMotPatBinNum (self)
 
def getMotPatBinSize (self)
 
def getXy_bounds (self)
 
def getAllowImport (self)
 
def getImportLocations (self)
 
def getCustomSpeedRange (self)
 
def getResults_path (self)
 
def getVerbose (self)
 
def getVersion (self)
 
def getParamDict (self)
 
def cleanUp (self)
 

Public Attributes

 protocol
 
 framerate
 
 mps_to_kmh
 
 maxSpeed
 
 nPredictedTrajectories
 
 minAcceleration
 
 maxAcceleration
 
 maxSteering
 
 useFeatures
 
 accelerationDistribution
 
 steeringDistribution
 
 minSampleSize
 DMP. More...
 
 probRetentionThreshold
 
 alignments
 
 timeHorizon
 
 speedBinNum
 
 curvilinearBinSize
 
 motPatBinNum
 
 motPatBinSize
 
 xy_bounds
 
 allowImport
 
 importLocations
 
 customSpeedRange
 
 results_path
 
 verbose
 
 version
 

Detailed Description

Definition at line 489 of file config.py.

Constructor & Destructor Documentation

◆ __init__()

def include.config.PredictionParams.__init__ (   self,
  protocol = 'ccc',
  maxSpeed = 50,
  nPredictedTrajectories = 3,
  minAcceleration = -2.0,
  maxAcceleration = 2.0,
  maxSteering = 0.2,
  useFeatures = False,
  mps_to_kmh = 3.6,
  timeHorizon = 1.5,
  speedBinNum = 7,
  curvilinearBinSize = 3,
  motPatBinNum = 40,
  minSampleSize = 50,
  probRetentionThreshold = 0.00001,
  motPatBinSize = [1,
  xy_bounds = None,
  allowImport = True,
  importLocations = '',
  customSpeedRange = None,
  results_path = '',
  verbose = 0,
  version = '' 
)

Definition at line 490 of file config.py.

490  def __init__(self, protocol='ccc', maxSpeed=50, nPredictedTrajectories=3, minAcceleration=-2.0, maxAcceleration=2.0, maxSteering=0.2, useFeatures=False, mps_to_kmh=3.6, timeHorizon=1.5, speedBinNum=7, curvilinearBinSize=3, motPatBinNum=40, minSampleSize=50, probRetentionThreshold=0.00001, motPatBinSize=[1,1], xy_bounds=None, allowImport=True, importLocations='', customSpeedRange=None, results_path='', verbose=0, version=''):
491  self.protocol = protocol
492  self.framerate = 15.0
493  self.mps_to_kmh = 3.6
494  self.maxSpeed = maxSpeed
495  self.nPredictedTrajectories = nPredictedTrajectories
496  self.minAcceleration = minAcceleration
497  self.maxAcceleration = maxAcceleration
498  self.maxSteering = maxSteering
499  self.useFeatures = useFeatures
500  self.accelerationDistribution = None
501  self.steeringDistribution = None
502 
503  self.minSampleSize = minSampleSize
504  self.probRetentionThreshold = probRetentionThreshold
505  self.alignments = None
506  self.timeHorizon = timeHorizon
507  self.speedBinNum = speedBinNum
508  self.curvilinearBinSize = curvilinearBinSize
509  self.motPatBinNum = motPatBinNum
510  self.motPatBinSize = motPatBinSize
511  self.xy_bounds = xy_bounds
512  self.allowImport = allowImport
513  self.importLocations = importLocations
514  self.customSpeedRange = customSpeedRange
515  self.results_path = results_path
516  self.verbose = verbose
517  self.version = version
518 

Member Function Documentation

◆ cleanUp()

def include.config.PredictionParams.cleanUp (   self)

Definition at line 580 of file config.py.

580  def cleanUp(self):
581  self.accelerationDistribution = None
582  self.steeringDistribution = None
583 

◆ getAccelerationDistribution()

def include.config.PredictionParams.getAccelerationDistribution (   self)

Definition at line 532 of file config.py.

532  def getAccelerationDistribution(self): return self.accelerationDistribution

◆ getAlignments()

def include.config.PredictionParams.getAlignments (   self)

Definition at line 537 of file config.py.

537  def getAlignments(self): return self.alignments

◆ getAllowImport()

def include.config.PredictionParams.getAllowImport (   self)

Definition at line 545 of file config.py.

545  def getAllowImport(self): return self.allowImport

◆ getCurvilinearBinSize()

def include.config.PredictionParams.getCurvilinearBinSize (   self)

Definition at line 541 of file config.py.

541  def getCurvilinearBinSize(self): return self.curvilinearBinSize

◆ getCustomSpeedRange()

def include.config.PredictionParams.getCustomSpeedRange (   self)

Definition at line 547 of file config.py.

547  def getCustomSpeedRange(self): return self.customSpeedRange

◆ getImportLocations()

def include.config.PredictionParams.getImportLocations (   self)

Definition at line 546 of file config.py.

546  def getImportLocations(self): return self.importLocations

◆ getMaxAcceleration()

def include.config.PredictionParams.getMaxAcceleration (   self)

Definition at line 529 of file config.py.

529  def getMaxAcceleration(self): return self.maxAcceleration/self.framerate**2

◆ getMaxSpeed()

def include.config.PredictionParams.getMaxSpeed (   self)

Definition at line 526 of file config.py.

526  def getMaxSpeed(self): return self.maxSpeed

◆ getMaxSteering()

def include.config.PredictionParams.getMaxSteering (   self)

Definition at line 530 of file config.py.

530  def getMaxSteering(self): return self.maxSteering/self.framerate

◆ getMinAcceleration()

def include.config.PredictionParams.getMinAcceleration (   self)

Definition at line 528 of file config.py.

528  def getMinAcceleration(self): return self.minAcceleration/self.framerate**2

◆ getMinSampleSize()

def include.config.PredictionParams.getMinSampleSize (   self)

Definition at line 535 of file config.py.

535  def getMinSampleSize(self): return self.minSampleSize

◆ getMotPatBinNum()

def include.config.PredictionParams.getMotPatBinNum (   self)

Definition at line 542 of file config.py.

542  def getMotPatBinNum(self): return self.motPatBinNum

◆ getMotPatBinSize()

def include.config.PredictionParams.getMotPatBinSize (   self)

Definition at line 543 of file config.py.

543  def getMotPatBinSize(self): return self.motPatBinSize

◆ getNPredictedTrajectories()

def include.config.PredictionParams.getNPredictedTrajectories (   self)

Definition at line 527 of file config.py.

527  def getNPredictedTrajectories(self): return self.nPredictedTrajectories

◆ getParamDict()

def include.config.PredictionParams.getParamDict (   self)

Definition at line 553 of file config.py.

553  def getParamDict(self):
554  if(self.protocol=='ccc'): return {'maxSpeed': self.getMaxSpeed(),
555  'nPredictedTrajectories': self.getNPredictedTrajectories(),
556  'minAcceleration': self.getMinAcceleration(),
557  'maxAcceleration': self.getMaxAcceleration(),
558  'maxSteering': self.getMaxSteering(),
559  'useFeatures': self.getUseFeatures(),
560  'accelerationDistribution': self.getAccelerationDistribution(),
561  'steeringDistribution': self.getSteeringDistribution()}
562  else: return {'minSampleSize': self.getMinSampleSize(),
563  'probRetentionThreshold': self.getProbRetentionThreshold(),
564  'maxSpeed': self.getMaxSpeed(),
565  'alignments': self.getAlignments(),
566  'speed_conv': self.getSpeed_conv(),
567  'timeHorizon': self.getTimeHorizon(),
568  'speedBinNum': self.getSpeedBinNum(),
569  'curvilinearBinSize': self.getCurvilinearBinSize(),
570  'motPatBinNum': self.getMotPatBinNum(),
571  'motPatBinSize': self.getMotPatBinSize(),
572  'xy_bounds': self.getXy_bounds(),
573  'allowImport': self.getAllowImport(),
574  'importLocations': self.getImportLocations(),
575  'customSpeedRange': self.getCustomSpeedRange(),
576  'results_path': self.getResults_path(),
577  'verbose': self.getVerbose(),
578  'version': self.getVersion()}
579 

◆ getProbRetentionThreshold()

def include.config.PredictionParams.getProbRetentionThreshold (   self)

Definition at line 536 of file config.py.

536  def getProbRetentionThreshold(self): return self.probRetentionThreshold

◆ getResults_path()

def include.config.PredictionParams.getResults_path (   self)

Definition at line 548 of file config.py.

548  def getResults_path(self): return self.results_path

◆ getSpeed_conv()

def include.config.PredictionParams.getSpeed_conv (   self)

Definition at line 538 of file config.py.

538  def getSpeed_conv(self): return self.framerate*self.mps_to_kmh

◆ getSpeedBinNum()

def include.config.PredictionParams.getSpeedBinNum (   self)

Definition at line 540 of file config.py.

540  def getSpeedBinNum(self): return self.speedBinNum

◆ getSteeringDistribution()

def include.config.PredictionParams.getSteeringDistribution (   self)

Definition at line 533 of file config.py.

533  def getSteeringDistribution(self): return self.steeringDistribution
534 

◆ getTimeHorizon()

def include.config.PredictionParams.getTimeHorizon (   self)

Definition at line 539 of file config.py.

539  def getTimeHorizon(self): return int(self.timeHorizon*self.framerate)

◆ getUseFeatures()

def include.config.PredictionParams.getUseFeatures (   self)

Definition at line 531 of file config.py.

531  def getUseFeatures(self): return self.useFeatures

◆ getVerbose()

def include.config.PredictionParams.getVerbose (   self)

Definition at line 549 of file config.py.

549  def getVerbose(self): return self.verbose

◆ getVersion()

def include.config.PredictionParams.getVersion (   self)

Definition at line 550 of file config.py.

550  def getVersion(self): return self.version
551 
552 

◆ getXy_bounds()

def include.config.PredictionParams.getXy_bounds (   self)

Definition at line 544 of file config.py.

544  def getXy_bounds(self): return self.xy_bounds

◆ setAccelerationDistribution()

def include.config.PredictionParams.setAccelerationDistribution (   self,
  value 
)

Definition at line 523 of file config.py.

523  def setAccelerationDistribution(self, value): self.accelerationDistribution = value

◆ setCameraSettings()

def include.config.PredictionParams.setCameraSettings (   self,
  framerate = 15.0,
  alignments = None 
)

Definition at line 519 of file config.py.

519  def setCameraSettings(self, framerate=15.0, alignments=None):
520  self.framerate = float(framerate)
521  self.alignments = alignments
522  return True

◆ setSteeringDistribution()

def include.config.PredictionParams.setSteeringDistribution (   self,
  value 
)

Definition at line 524 of file config.py.

524  def setSteeringDistribution(self, value): self.steeringDistribution = value
525 

Member Data Documentation

◆ accelerationDistribution

include.config.PredictionParams.accelerationDistribution

Definition at line 500 of file config.py.

◆ alignments

include.config.PredictionParams.alignments

Definition at line 505 of file config.py.

◆ allowImport

include.config.PredictionParams.allowImport

Definition at line 512 of file config.py.

◆ curvilinearBinSize

include.config.PredictionParams.curvilinearBinSize

Definition at line 508 of file config.py.

◆ customSpeedRange

include.config.PredictionParams.customSpeedRange

Definition at line 514 of file config.py.

◆ framerate

include.config.PredictionParams.framerate

Definition at line 492 of file config.py.

◆ importLocations

include.config.PredictionParams.importLocations

Definition at line 513 of file config.py.

◆ maxAcceleration

include.config.PredictionParams.maxAcceleration

Definition at line 497 of file config.py.

◆ maxSpeed

include.config.PredictionParams.maxSpeed

Definition at line 494 of file config.py.

◆ maxSteering

include.config.PredictionParams.maxSteering

Definition at line 498 of file config.py.

◆ minAcceleration

include.config.PredictionParams.minAcceleration

Definition at line 496 of file config.py.

◆ minSampleSize

include.config.PredictionParams.minSampleSize

DMP.

Definition at line 503 of file config.py.

◆ motPatBinNum

include.config.PredictionParams.motPatBinNum

Definition at line 509 of file config.py.

◆ motPatBinSize

include.config.PredictionParams.motPatBinSize

Definition at line 510 of file config.py.

◆ mps_to_kmh

include.config.PredictionParams.mps_to_kmh

Definition at line 493 of file config.py.

◆ nPredictedTrajectories

include.config.PredictionParams.nPredictedTrajectories

Definition at line 495 of file config.py.

◆ probRetentionThreshold

include.config.PredictionParams.probRetentionThreshold

Definition at line 504 of file config.py.

◆ protocol

include.config.PredictionParams.protocol

Definition at line 491 of file config.py.

◆ results_path

include.config.PredictionParams.results_path

Definition at line 515 of file config.py.

◆ speedBinNum

include.config.PredictionParams.speedBinNum

Definition at line 507 of file config.py.

◆ steeringDistribution

include.config.PredictionParams.steeringDistribution

Definition at line 501 of file config.py.

◆ timeHorizon

include.config.PredictionParams.timeHorizon

Definition at line 506 of file config.py.

◆ useFeatures

include.config.PredictionParams.useFeatures

Definition at line 499 of file config.py.

◆ verbose

include.config.PredictionParams.verbose

Definition at line 516 of file config.py.

◆ version

include.config.PredictionParams.version

Definition at line 517 of file config.py.

◆ xy_bounds

include.config.PredictionParams.xy_bounds

Definition at line 511 of file config.py.


The documentation for this class was generated from the following file: