Writer.h
Go to the documentation of this file.
1 /**
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @author Fabian Reister ( fabian dot reister at kit dot edu )
17  * @date 2021
18  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19  * GNU General Public License
20  */
21 
22 #pragma once
23 
26 
31 
33 {
34 
36  {
37  public:
39 
40  bool store(const server::StackResult& result, const std::string& clientID);
41 
43  const std::string& clientID);
44 
46  const std::string& clientID);
47 
48 
49  private:
50  bool storePrepare(const armarx::navigation::global_planning::GlobalPlannerResult& result,
51  const std::string& clientID,
52  armem::Commit& commit);
53 
54  bool storePrepare(const local_planning::LocalPlannerResult& result,
55  const std::string& clientID,
56  armem::Commit& commit);
57 
58  protected:
59  std::string propertyPrefix() const override;
60  Properties defaultProperties() const override;
61 
62  private:
63  std::mutex writeMutex;
64  };
65 } // namespace armarx::navigation::memory::client::stack_result
StackResult.h
armarx::navigation::local_planning::LocalPlannerResult
Definition: LocalPlanner.h:40
armarx::armem::Commit
A bundle of updates to be sent to the memory.
Definition: Commit.h:89
TrajectoryController.h
LocalPlanner.h
armarx::armem::client::util::SimpleWriterBase::Properties
Definition: SimpleWriterBase.h:49
armarx::navigation::memory::client::stack_result
This file is part of ArmarX.
Definition: Reader.cpp:8
armarx::armem::client::util::SimpleWriterBase::SimpleWriterBase
SimpleWriterBase()
Definition: SimpleWriterBase.cpp:8
GlobalPlanner.h
armarx::navigation::memory::client::stack_result::Writer::propertyPrefix
std::string propertyPrefix() const override
Definition: Writer.cpp:122
armarx::armem::client::util::SimpleWriterBase
Definition: SimpleWriterBase.h:38
armarx::navigation::global_planning::GlobalPlannerResult
Definition: GlobalPlanner.h:38
armarx::navigation::memory::client::stack_result::Writer
Definition: Writer.h:35
Commit.h
armarx::navigation::memory::client::stack_result::Writer::store
bool store(const server::StackResult &result, const std::string &clientID)
Definition: Writer.cpp:16
armarx::navigation::memory::client::stack_result::Writer::defaultProperties
Properties defaultProperties() const override
Definition: Writer.cpp:128
SimpleWriterBase.h
armarx::navigation::server::StackResult
Definition: StackResult.h:37