WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
robot_link_internal.h
Go to the documentation of this file.
1#pragma once
4
6namespace internal {
9
14 double angle = 0;
15};
17 RobotLinkData() = default;
21 explicit RobotLinkData(
22 const message::RobotLink &data,
23 const std::vector<std::shared_ptr<RobotLinkData>> &links)
24 : message::RobotLink(data) {
25 if (this->joint_parent >= 0 &&
26 static_cast<std::size_t>(this->joint_parent) < links.size()) {
27 parent_name = links[this->joint_parent]->name;
28 parent_ptr = links[this->joint_parent];
29 }
30 }
35 void lockJoints(const std::vector<SharedString> &link_names);
36
38 std::weak_ptr<RobotLinkData> parent_ptr;
39};
40} // namespace internal
41
u8stringとstringとwstringをshared_ptrで持ち共有する
Definition encoding.h:69
3次元の平行移動と回転
Definition transform.h:615
RobotJointType
Definition robot_link.h:18
Definition robot_link_internal.h:16
SharedString parent_name
Definition robot_link_internal.h:37
RobotLinkData(const message::RobotLink &data, const std::vector< std::shared_ptr< RobotLinkData > > &links)
Definition robot_link_internal.h:21
std::weak_ptr< RobotLinkData > parent_ptr
Definition robot_link_internal.h:38
Definition robot_link_internal.h:7
SharedString name
Definition robot_link_internal.h:10
SharedString parent_name
Definition robot_link_internal.h:11
Transform origin
Definition robot_link_internal.h:13
RobotJointType type
Definition robot_link_internal.h:12
#define WEBCFACE_NS_END
Definition webcface-config.h:104
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:103