|
WebCFace 3.2.0
Web-based Communication Framework & Dashboard-like UI
|
リンク1つを表すクラス More...
#include <webcface/robot_link.h>
Public Member Functions | |
| RobotLink () | |
| RobotLink (const std::shared_ptr< internal::RobotLinkData > &msg_data) | |
| ~RobotLink () | |
| RobotLink (const SharedString &name, const RobotJoint &joint, const Geometry &geometry, ViewColor color) | |
| std::shared_ptr< internal::RobotLinkData > | lockJoints (const std::vector< SharedString > &link_names) const |
| RobotLink (const StringInitializer &name, const RobotJoint &joint, const Geometry &geometry, ViewColor color=ViewColor::inherit) | |
| RobotLink (const StringInitializer &name, const Geometry &geometry, ViewColor color=ViewColor::inherit) | |
| StringView | name () const |
| 名前を取得 | |
| WStringView | nameW () const |
| 名前を取得 (wstring) | |
| RobotJoint | joint () const |
| jointを取得 | |
| std::optional< Geometry > | geometry () const |
| geometryを取得 | |
| ViewColor | color () const |
| 色を取得 | |
リンク1つを表すクラス
ver2.0〜 メンバ変数ではなくgetter関数に変更 リンクの情報をshared_ptrで持っているので、 コピーしても同じリンクを指す
| RobotLink | ( | ) |
|
explicit |
|
default |
| RobotLink | ( | const SharedString & | name, |
| const RobotJoint & | joint, | ||
| const Geometry & | geometry, | ||
| ViewColor | color | ||
| ) |
|
inline |
| name | リンクの名前 |
| joint | 親リンクとの接続方法 |
| geometry | リンクの形状 (表示用) |
| color | 色 (表示用) |
ver2.0〜 wstring対応, ver3.0〜 StringInitializer 型で置き換え
|
inline |
ベースのリンクではjointを省略可能 (fixedAbsolute({0, 0, 0})になる)
| name | リンクの名前 |
| geometry | リンクの形状 (表示用) |
| color | 色 (表示用) |
ver2.0〜 wstring対応, ver3.0〜 StringInitializer 型で置き換え
| ViewColor color | ( | ) | const |
色を取得
| std::optional< Geometry > geometry | ( | ) | const |
geometryを取得
| RobotJoint joint | ( | ) | const |
jointを取得
| std::shared_ptr< internal::RobotLinkData > lockJoints | ( | const std::vector< SharedString > & | link_names | ) | const |
jointのparentを名前指定からid指定に変換 (message送信用)
| StringView name | ( | ) | const |
名前を取得
ver3.0〜 std::stringの参照から StringView に変更
| WStringView nameW | ( | ) | const |
名前を取得 (wstring)
ver3.0〜 std::stringの参照から StringView に変更