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
32namespace 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 */
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
CSpaceVisualizerTask()=default
Ctor used by object factories.
void run(const RemoteObjectNodePrxList &, const Ice::Current &=Ice::emptyCurrent) override
Does not do anything for this task.
Path getPath(const Ice::Current &=Ice::emptyCurrent) const override
CSpaceVisualizerTask(const SimoxCSpaceWith2DPoseBasePtr &cspace, const VectorXf &robotPlatform2DPose, const std::string &taskName="CSpaceVisualizerTask")
void abortTask(const Ice::Current &=Ice::emptyCurrent) override
Does not do anything for this task.
MotionPlanningTaskWithDefaultMembers(const VectorXf &startCfg, const VectorXf &goalCfg, const CSpaceBasePtr &cspace, Ice::Float dcdStep, Ice::Long maximalPlanningTimeInSeconds, const std::string &taskName)
ctor
The RemoteHandle class wrapps a ClientSideRemoteHandleControlBlock and can be used just as a Ice prox...
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< CSpaceVisualizerTask > CSpaceVisualizerTaskPtr
RemoteHandle< MotionPlanningTaskControlInterfacePrx > CSpaceVisualizerTaskHandle