gps factor replace bind calls
							parent
							
								
									8506877a52
								
							
						
					
					
						commit
						984d2d104f
					
				|  | @ -20,8 +20,6 @@ | |||
| #include <gtsam/base/Testable.h> | ||||
| #include <gtsam/base/numericalDerivative.h> | ||||
| 
 | ||||
| #include <boost/bind/bind.hpp> | ||||
| 
 | ||||
| #include <CppUnitLite/TestHarness.h> | ||||
| 
 | ||||
| #include <GeographicLib/Config.h> | ||||
|  | @ -71,7 +69,7 @@ TEST( GPSFactor, Constructor ) { | |||
| 
 | ||||
|   // Calculate numerical derivatives
 | ||||
|   Matrix expectedH = numericalDerivative11<Vector, Pose3>( | ||||
|       std::bind(&GPSFactor::evaluateError, &factor, std::placeholders::_1, boost::none), T); | ||||
|       [&factor](const Pose3& T) { return factor.evaluateError(T); }, T); | ||||
| 
 | ||||
|   // Use the factor to calculate the derivative
 | ||||
|   Matrix actualH; | ||||
|  | @ -100,7 +98,7 @@ TEST( GPSFactor2, Constructor ) { | |||
| 
 | ||||
|   // Calculate numerical derivatives
 | ||||
|   Matrix expectedH = numericalDerivative11<Vector, NavState>( | ||||
|       std::bind(&GPSFactor2::evaluateError, &factor, std::placeholders::_1, boost::none), T); | ||||
|       [&factor](const NavState& T) { return factor.evaluateError(T); }, T); | ||||
| 
 | ||||
|   // Use the factor to calculate the derivative
 | ||||
|   Matrix actualH; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue