CSpaceVisualizerTask.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package ArmarX
19  * @author Mirko Waechter( mirko.waechter at kit dot edu)
20  * @date 2016
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 #pragma once
25 
27 
30 #include <RobotComponents/interface/components/MotionPlanning/Tasks/CSpaceVisualizerTask.h>
31 
32 namespace armarx
33 {
34  /**
35  * @brief The purpose of this task is solely to visualize a cspace, which can be inspected in the
36  * CSpaceVisualizer GUI plugin.
37  */
40  public virtual CSpaceVisualizerTaskBase
41  {
42  public:
43  CSpaceVisualizerTask( //problem
44  const SimoxCSpaceWith2DPoseBasePtr& cspace,
45  const VectorXf& robotPlatform2DPose,
46  const std::string& taskName = "CSpaceVisualizerTask");
47 
48  //PlanningControlInterface
49  /**
50  * @brief Does not do anything for this task.
51  */
52  void
53  abortTask(const Ice::Current& = Ice::emptyCurrent) override
54  {
55  }
56 
57  /**
58  * @return Contains the robot pose from the constructor..
59  */
60  Path getPath(const Ice::Current& = Ice::emptyCurrent) const override;
61 
62 
63  //PlanningTaskBase
64  /**
65  * @brief Does not do anything for this task.
66  */
67  void run(const RemoteObjectNodePrxList&, const Ice::Current& = Ice::emptyCurrent) override;
68 
69  protected:
70  /**
71  * @brief Ctor used by object factories.
72  */
73  CSpaceVisualizerTask() = default;
74 
75  private:
76  template <class Base, class Derived>
77  friend class ::armarx::GenericFactory;
78 
79  // Object interface
80  public:
81  void ice_postUnmarshal() override;
82  };
83 
86 
87 } // namespace armarx
armarx::MotionPlanningTaskWithDefaultMembers
Definition: MotionPlanningTask.h:167
armarx::CSpaceVisualizerTask::abortTask
void abortTask(const Ice::Current &=Ice::emptyCurrent) override
Does not do anything for this task.
Definition: CSpaceVisualizerTask.h:53
FactoryCollectionBase.h
armarx::CSpaceVisualizerTask::getPath
Path getPath(const Ice::Current &=Ice::emptyCurrent) const override
Definition: CSpaceVisualizerTask.cpp:55
MotionPlanningTask.h
SimoxCSpace.h
armarx::CSpaceVisualizerTask::CSpaceVisualizerTask
CSpaceVisualizerTask()=default
Ctor used by object factories.
armarx::CSpaceVisualizerTask::run
void run(const RemoteObjectNodePrxList &, const Ice::Current &=Ice::emptyCurrent) override
Does not do anything for this task.
Definition: CSpaceVisualizerTask.cpp:65
IceUtil::Handle
Definition: forward_declarations.h:30
armarx::navigation::core::Path
std::vector< Pose > Path
Definition: basic_types.h:46
armarx::RemoteHandle
The RemoteHandle class wrapps a ClientSideRemoteHandleControlBlock and can be used just as a Ice prox...
Definition: RemoteHandle.h:46
armarx::CSpaceVisualizerTask::ice_postUnmarshal
void ice_postUnmarshal() override
Definition: CSpaceVisualizerTask.cpp:73
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
armarx::CSpaceVisualizerTask
The purpose of this task is solely to visualize a cspace, which can be inspected in the CSpaceVisuali...
Definition: CSpaceVisualizerTask.h:38