| 
									
										
										
										
											2014-11-24 00:31:33 +08:00
										 |  |  | /**
 | 
					
						
							|  |  |  |  * @file expressions.h | 
					
						
							|  |  |  |  * @brief Common expressions, both linear and non-linear | 
					
						
							| 
									
										
										
										
											2014-11-24 06:15:25 +08:00
										 |  |  |  * @date Nov 23, 2014 | 
					
						
							| 
									
										
										
										
											2014-11-24 00:31:33 +08:00
										 |  |  |  * @author Frank Dellaert | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <gtsam_unstable/nonlinear/Expression.h>
 | 
					
						
							|  |  |  | #include <boost/bind.hpp>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace gtsam { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Generics
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | template<class T> | 
					
						
							|  |  |  | Expression<T> between(const Expression<T>& t1, const Expression<T>& t2) { | 
					
						
							|  |  |  |   return Expression<T>(t1, &T::between, t2); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef Expression<double> double_; | 
					
						
							| 
									
										
										
										
											2014-11-24 06:15:25 +08:00
										 |  |  | typedef Expression<Vector3> Vector3_; | 
					
						
							| 
									
										
										
										
											2014-11-24 00:31:33 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | } // \namespace gtsam
 | 
					
						
							|  |  |  | 
 |