franka_state_interface.h
Go to the documentation of this file.
1 // Copyright (c) 2017 Franka Emika GmbH
2 // Use of this source code is governed by the Apache-2.0 license, see LICENSE
3 #pragma once
4 
5 #include <string>
6 
7 #include <franka/robot_state.h>
9 
10 namespace franka_hw {
11 
16  public:
17  FrankaStateHandle() = delete;
18 
25  FrankaStateHandle(const std::string& name, franka::RobotState& robot_state)
26  : name_(name), robot_state_(&robot_state) {}
27 
33  const std::string& getName() const noexcept { return name_; }
34 
40  const franka::RobotState& getRobotState() const noexcept { return *robot_state_; }
41 
42  private:
43  std::string name_;
45 };
46 
53 };
54 
55 } // namespace franka_hw
const franka::RobotState & getRobotState() const noexcept
Gets the current robot state.
FrankaStateHandle(const std::string &name, franka::RobotState &robot_state)
Creates an instance of a FrankaStateHandle.
Handle to read the complete state of a robot.
Hardware interface to read the complete robot state.
const franka::RobotState * robot_state_
const std::string & getName() const noexcept
Gets the name of the state handle.


franka_hw
Author(s): Franka Emika GmbH
autogenerated on Fri Oct 23 2020 03:47:05