Package org.openpnp.util
Class TravelCost
- java.lang.Object
-
- org.openpnp.util.TravelCost
-
public class TravelCost extends java.lang.Object
Methods to estimate the cost of motion between two locations. The basic principle is to estimate the cost using three point motion with two constant acceleration segments and one optional feedrate limited segment. The estimation assumes, that motion starts and ends at standstill.
-
-
Constructor Summary
Constructors Constructor Description TravelCost()
TravelCost(HeadMountable movable)
TravelCost(HeadMountable movable, LengthUnit units)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCost(Location a, Location b)
double
getXyzcCost(Location a, Location b)
double
getXyzCost(Location a, Location b)
-
-
-
Constructor Detail
-
TravelCost
public TravelCost(HeadMountable movable, LengthUnit units) throws java.lang.Exception
- Parameters:
movable
- head mountable's axis to use for cost estimation, if null the default camera on the default head is usedunits
- the units to calculate the in. static data is prepared in this units and Length input is convert to this units for the estimation- Throws:
java.lang.Exception
-
TravelCost
public TravelCost(HeadMountable movable) throws java.lang.Exception
- Throws:
java.lang.Exception
-
TravelCost
public TravelCost() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-