IkDemo.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <VirtualRobot/VirtualRobot.h>
4 
6 
8 
9 
11 {
12 
13  struct Manipulator;
14 
15 
16  class IkDemo
17  {
18  public:
19 
20  struct Params
21  {
22  Params();
23 
24  std::string robotFile;
25  std::string robotNodeSetNamesStr;
26  std::vector<std::string> robotNodeSetNames() const;
27  };
28  struct Remote
29  {
30  std::optional<armarx::viz::Client> arviz;
31  };
32  struct Robot
33  {
35 
37  armarx::viz::Robot visu { "robot" };
38  };
39 
40 
41  public:
42 
43  IkDemo();
44  ~IkDemo();
45 
47 
48  void connect(Remote&& remote);
49 
50  void start();
51  void update();
52 
53  void runIk();
54 
55 
56  public:
57 
61 
63 
64  std::vector<std::unique_ptr<Manipulator>> manipulators;
65 
66  };
67 
68 }
Client.h
armar6::skills::components::armar6_ik_demo::IkDemo::Params::robotNodeSetNames
std::vector< std::string > robotNodeSetNames() const
Definition: IkDemo.cpp:320
armar6::skills::components::armar6_ik_demo::IkDemo::defineProperties
void defineProperties(armarx::PropertyDefinitionContainer &defs)
Definition: IkDemo.cpp:327
armar6::skills::components::armar6_ik_demo::IkDemo::Remote
Definition: IkDemo.h:28
armar6::skills::components::armar6_ik_demo::IkDemo::runIk
void runIk()
Definition: IkDemo.cpp:424
armar6::skills::components::armar6_ik_demo::IkDemo::Params
Definition: IkDemo.h:20
armar6::skills::components::armar6_ik_demo::IkDemo::robot
Robot robot
Definition: IkDemo.h:60
armar6::skills::components::armar6_ik_demo::IkDemo::IkDemo
IkDemo()
Definition: IkDemo.cpp:304
armar6::skills::components::armar6_ik_demo::IkDemo::Params::robotFile
std::string robotFile
Definition: IkDemo.h:24
armarx::viz::StagedCommit
A staged commit prepares multiple layers to be committed.
Definition: Client.h:31
armar6::skills::components::armar6_ik_demo::IkDemo::update
void update()
Definition: IkDemo.cpp:395
armar6::skills::components::armar6_ik_demo::IkDemo::connect
void connect(Remote &&remote)
armar6::skills::components::armar6_ik_demo::IkDemo::Robot::layer
armarx::viz::Layer layer
Definition: IkDemo.h:36
armar6::skills::components::armar6_ik_demo::IkDemo::params
Params params
Definition: IkDemo.h:59
armarx::viz::Robot
Definition: Robot.h:10
armarx::PropertyDefinitionContainer
PropertyDefinitionContainer.
Definition: PropertyDefinitionContainer.h:53
armar6::skills::components::armar6_ik_demo::IkDemo::Params::robotNodeSetNamesStr
std::string robotNodeSetNamesStr
Definition: IkDemo.h:25
armar6::skills::components::armar6_ik_demo::IkDemo
Definition: IkDemo.h:16
armar6::skills::components::armar6_ik_demo::IkDemo::start
void start()
Definition: IkDemo.cpp:339
armar6::skills::components::armar6_ik_demo::IkDemo::manipulators
std::vector< std::unique_ptr< Manipulator > > manipulators
Definition: IkDemo.h:64
armar6::skills::components::armar6_ik_demo::IkDemo::stage
armarx::viz::StagedCommit stage
Definition: IkDemo.h:62
forward_declarations.h
armar6::skills::components::armar6_ik_demo::IkDemo::Remote::arviz
std::optional< armarx::viz::Client > arviz
Definition: IkDemo.h:30
armar6::skills::components::armar6_ik_demo::IkDemo::Robot::robot
VirtualRobot::RobotPtr robot
Definition: IkDemo.h:34
armar6::skills::components::armar6_ik_demo::IkDemo::remote
Remote remote
Definition: IkDemo.h:58
armar6::skills::components::armar6_ik_demo::IkDemo::Robot
Definition: IkDemo.h:32
armar6::skills::components::armar6_ik_demo::IkDemo::Params::Params
Params()
Definition: IkDemo.cpp:313
armarx::viz::Layer
Definition: Layer.h:12
armar6::skills::components::armar6_ik_demo
Definition: ComponentInterface.ice:27
armar6::skills::components::armar6_ik_demo::IkDemo::~IkDemo
~IkDemo()
Definition: IkDemo.cpp:308
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition: Bus.h:18
armar6::skills::components::armar6_ik_demo::IkDemo::Robot::visu
armarx::viz::Robot visu
Definition: IkDemo.h:37