main.cpp
Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (c) 2010, Stephan Weiss, ASL, ETH Zurich, Switzerland
00004 You can contact the author at <stephan dot weiss at ieee dot org>
00005 
00006 All rights reserved.
00007 
00008 Redistribution and use in source and binary forms, with or without
00009 modification, are permitted provided that the following conditions are met:
00010 * Redistributions of source code must retain the above copyright
00011 notice, this list of conditions and the following disclaimer.
00012 * Redistributions in binary form must reproduce the above copyright
00013 notice, this list of conditions and the following disclaimer in the
00014 documentation and/or other materials provided with the distribution.
00015 * Neither the name of ETHZ-ASL nor the
00016 names of its contributors may be used to endorse or promote products
00017 derived from this software without specific prior written permission.
00018 
00019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00022 DISCLAIMED. IN NO EVENT SHALL ETHZ-ASL BE LIABLE FOR ANY
00023 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00024 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00025 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00026 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00027 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00028 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00029 
00030 */
00031 
00032 #ifdef POSE_MEAS
00033 #include "pose_measurements.h"
00034 #endif
00035 #ifdef POSITION_MEAS
00036 #include "position_measurements.h"
00037 #endif
00038 
00039 int main(int argc, char** argv)
00040 {
00041         ros::init(argc, argv, "ssf_core");
00042 #ifdef POSE_MEAS
00043         PoseMeasurements PoseMeas;
00044         ROS_INFO_STREAM("Filter type: pose_sensor");
00045 #endif
00046 
00047 #ifdef POSITION_MEAS
00048         PositionMeasurements PositionMeas;
00049         ROS_INFO_STREAM("Filter type: position_sensor");
00050 #endif
00051 
00052 
00053         //  print published/subscribed topics
00054         ros::V_string topics;
00055         ros::this_node::getSubscribedTopics(topics);
00056         std::string nodeName = ros::this_node::getName();
00057         std::string topicsStr = nodeName + ":\n\tsubscribed to topics:\n";
00058         for(unsigned int i=0; i<topics.size(); i++)
00059                 topicsStr+=("\t\t" + topics.at(i) + "\n");
00060 
00061         topicsStr += "\tadvertised topics:\n";
00062         ros::this_node::getAdvertisedTopics(topics);
00063         for(unsigned int i=0; i<topics.size(); i++)
00064                 topicsStr+=("\t\t" + topics.at(i) + "\n");
00065 
00066         ROS_INFO_STREAM(""<< topicsStr);
00067 
00068         ros::spin();
00069 
00070         return 0;
00071 }


ssf_updates
Author(s): Stephan Weiss, Markus Achtelik
autogenerated on Mon Oct 6 2014 10:27:06