SimulatedDevices.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2013 Tallinn University of Technology.
00003  * All rights reserved. This program and the accompanying materials
00004  * are made available under the terms of the GNU Public License v3.0
00005  * which accompanies this distribution, and is available at
00006  * http://www.gnu.org/licenses/gpl.html
00007  *
00008  * Contributors:
00009  *     Yuri Gavshin
00010  */
00011 
00012 #ifndef SIMULATEDDEVICES_H_
00013 #define SIMULATEDDEVICES_H_
00014 #include "SimulatedDevice.h"
00015 
00016 //Class added to SimulatedIAUV as devices->, put your data into into this class members or use all vector to store your device
00017 class SimulatedDevices
00018 {
00019 public:
00020   //Object members
00021   std::vector<uwsim::SimulatedDevice::Ptr> all;
00022 
00023   SimulatedDevices();
00024 
00025   //Applies parsed XML configurations by calling appropriate methods
00026   //on all registered factories (set in initFactories() in SimulatedDevices.cpp)
00027   void applyConfig(SimulatedIAUV * auv, Vehicle &vehicleChars, SceneBuilder *oscene);
00028 
00029   //Factory methods
00030 
00031   //returns configured ROSInterface based on given XML configuration
00032   static std::vector<boost::shared_ptr<ROSInterface> > getInterfaces(
00033       ROSInterfaceInfo & rosInterface, std::vector<boost::shared_ptr<SimulatedIAUV> > & iauvFile);
00034 
00035   //Parses driver's XML configuration
00036   static std::vector<uwsim::SimulatedDeviceConfig::Ptr> processConfig(const xmlpp::Node* node, ConfigFile * config,
00037                                                                       bool isDevice = false);
00038 };
00039 #endif /* SIMULATEDDEVICES_H_ */


uwsim
Author(s): Mario Prats
autogenerated on Mon Oct 6 2014 08:24:07