All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LogPlay.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2011 Nate Koenig
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 /* Desc: A class to log data
18  * Author: Nate Koenig
19  * Date: 1 Jun 2010
20  */
21 
22 #ifndef _LOGPLAY_HH_
23 #define _LOGPLAY_HH_
24 
25 #include <list>
26 #include <string>
27 
28 namespace gazebo
29 {
30  namespace physics
31  {
34 
45  class Logplay
46  {
52  public: bool Open(const std::string &_logFile);
53 
60  public: Iterator Begin();
61 
68  public: Iterator End();
69 
76  public: bool Play(WorldPtr _world);
77 
88  public: bool Play(WorldPtr _world, const std::string &_entityName);
89 
99  public: bool Play(WorldPtr _world,
100  const std::list<std::string> &_entityNames);
101 
111  public: bool Play(WorldPtr _world, common::Time _start,
112  common::Time _stop);
113 
126  public: bool Play(WorldPtr _world, const std::string &_entityName,
127  common::Time _start, common::Time _stop);
128 
140  public: bool Play(WorldPtr _world,
141  const std::list<std::string> &_entityNames,
142  common::Time _start, common::Time _stop);
143  };
145  }
146 }
147 
148 #endif