-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added skeleton for state_estimator and state_estimator_node
Added state_estimator to CMakeLists.txt Minor change in doxygen comment in sensor_processor_node
- Loading branch information
George Brindeiro
committed
Apr 24, 2014
1 parent
415406c
commit f862fbb
Showing
6 changed files
with
118 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* @file state_estimator.h | ||
* @author George Andrew Brindeiro ([email protected]) | ||
* @date Apr 24, 2014 | ||
* | ||
* @attention Copyright (C) 2014 | ||
* @attention Laboratório de Automação e Robótica (LARA) | ||
* @attention Universidade de Brasília (UnB) | ||
*/ | ||
|
||
#ifndef LARA_RGBD_STATE_ESTIMATOR_H_ | ||
#define LARA_RGBD_STATE_ESTIMATOR_H_ | ||
|
||
class StateEstimator | ||
{ | ||
public: | ||
StateEstimator() | ||
{ | ||
|
||
} | ||
|
||
~SensorProcessor() {} | ||
|
||
/*! | ||
* @brief | ||
* | ||
* This does | ||
* | ||
* @param bar ef | ||
*/ | ||
void foo(int bar); | ||
|
||
private: | ||
int var_; /**< Indicates which feature detector we are using to process point clouds */ | ||
}; | ||
|
||
#endif // LARA_RGBD_STATE_ESTIMATOR_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* @file state_estimator_node.h | ||
* @author George Andrew Brindeiro ([email protected]) | ||
* @date Apr 24, 2014 | ||
* | ||
* @attention Copyright (C) 2014 | ||
* @attention Laboratório de Automação e Robótica (LARA) | ||
* @attention Universidade de Brasília (UnB) | ||
*/ | ||
|
||
#ifndef LARA_RGBD_STATE_ESTIMATOR_NODE_H_ | ||
#define LARA_RGBD_STATE_ESTIMATOR_NODE_H_ | ||
|
||
#include <state_estimator/state_estimator.h> | ||
|
||
void cloud_cb(const sensor_msgs::PointCloud2::ConstPtr& cloud_msg); | ||
void odom_cb(const nav_msgs::Odometry::ConstPtr& odom_msg); | ||
|
||
ros::Publisher pub_pose; | ||
|
||
StateEstimator* state_estimator; | ||
|
||
#endif // LARA_RGBD_STATE_ESTIMATOR_NODE_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* @file state_estimator.cpp | ||
* @author George Andrew Brindeiro ([email protected]) | ||
* @date Apr 24, 2014 | ||
* | ||
* @attention Copyright (C) 2014 | ||
* @attention Laboratório de Automação e Robótica (LARA) | ||
* @attention Universidade de Brasília (UnB) | ||
* | ||
* @brief | ||
* | ||
* This class is responsible for | ||
*/ | ||
|
||
#include <state_estimator/state_estimator.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* @file state_estimator_node.cpp | ||
* @author George Andrew Brindeiro ([email protected]) | ||
* @date Apr 24, 2014 | ||
* | ||
* @attention Copyright (C) 2014 | ||
* @attention Laboratório de Automação e Robótica (LARA) | ||
* @attention Universidade de Brasília (UnB) | ||
* | ||
* @brief ROS node used to p | ||
* | ||
* This ROS node receives | ||
*/ | ||
|
||
#include <ros/ros.h> | ||
|
||
#include <state_estimator/state_estimator_node.h> | ||
|
||
int main (int argc, char** argv) | ||
{ | ||
// Initialize ROS | ||
ros::init(argc, argv, "lara_rgbd_state_estimator"); | ||
ros::NodeHandle nh; | ||
|
||
// Create a ROS subscriber for sensor data | ||
ros::Subscriber sub_cloud = nh.subscribe("feature_cloud", 1, cloud_cb); | ||
ros::Subscriber sub_odom = nh.subscribe("odometry", 1, odom_cb); | ||
|
||
// Create a ROS publisher for estimated pose | ||
pub_pose = nh.advertise<geometry_msgs::PoseWithCovarianceStamped>("estimated_pose", 1); | ||
|
||
// Create SensorProcessor | ||
state_estimator = new StateEstimator(); | ||
|
||
// Spin | ||
ros::spin (); | ||
} |