2#include <unordered_map>
9#include "webcface/common/webcface-config.h"
14struct Canvas3DComponentData;
17struct TemporalCanvas3DComponentData;
34 std::shared_ptr<message::Canvas3DComponentData> msg_data;
35 std::weak_ptr<internal::ClientData> data_w;
38 void checkData()
const;
48 const std::shared_ptr<message::Canvas3DComponentData> &msg_data,
49 const std::weak_ptr<internal::ClientData> &data_w,
61 std::string id()
const;
71 std::wstring idW()
const;
81 return !(*
this == other);
103 std::optional<Geometry>
geometry()
const;
108 template <WEBCFACE_COMPLETE(RobotModel)>
111extern template std::optional<RobotModel>
112Canvas3DComponent::robotModel<RobotModel, true>()
const;
120 std::unique_ptr<internal::TemporalCanvas3DComponentData> msg_data;
149 std::unique_ptr<internal::TemporalCanvas3DComponentData>
150 lockTmp(
const std::shared_ptr<internal::ClientData> &data,
152 std::unordered_map<Canvas3DComponentType, int> *idx_next =
nullptr);
173 this->origin(origin);
174 return std::move(*
this);
186 return std::move(*
this);
198 return std::move(*
this);
206 this->robotModel(field);
207 return std::move(*
this);
215 angles(
const std::unordered_map<std::string, double> &angles) &;
220 angles(
const std::unordered_map<std::string, double> &angles) && {
221 this->angles(angles);
222 return std::move(*
this);
232 angles(
const std::unordered_map<std::wstring, double> &angles) &;
237 angles(
const std::unordered_map<std::wstring, double> &angles) && {
238 this->angles(angles);
239 return std::move(*
this);
255 this->angle(joint_name, angle);
256 return std::move(*
this);
272 this->angle(joint_name, angle);
273 return std::move(*
this);
Canvas3Dに表示する要素
Definition component_canvas3d.h:33
bool operator!=(const Canvas3DComponent &other) const
Definition component_canvas3d.h:80
std::optional< RobotModel_ > robotModel() const
RobotModelを取得
RobotModelの送受信データを表すクラス
Definition robot_model.h:26
u8stringとstringとwstringをshared_ptrで持ち共有する
Definition encoding.h:67
Canvas3Dを構築するときに使う一時的なCanvas3DComponent.
Definition component_canvas3d.h:119
TemporalCanvas3DComponent && angle(const std::string &joint_name, double angle) &&
Definition component_canvas3d.h:253
TemporalCanvas3DComponent && geometry(const Geometry &g) &&
Definition component_canvas3d.h:196
TemporalCanvas3DComponent && origin(const Transform &origin) &&
Definition component_canvas3d.h:172
TemporalCanvas3DComponent && angles(const std::unordered_map< std::string, double > &angles) &&
Definition component_canvas3d.h:220
TemporalCanvas3DComponent && robotModel(const RobotModel &field) &&
Definition component_canvas3d.h:205
TemporalCanvas3DComponent && color(ViewColor color) &&
Definition component_canvas3d.h:184
TemporalCanvas3DComponent && angle(const std::wstring &joint_name, double angle) &&
Definition component_canvas3d.h:270
TemporalCanvas3DComponent && angles(const std::unordered_map< std::wstring, double > &angles) &&
Definition component_canvas3d.h:237
bool operator==(const T &other, const InputRef &ref)
Definition text.h:574
ViewColor
Definition component_view.h:40
Canvas3DComponentType
Definition component_canvas3d.h:20
#define WEBCFACE_DLL
Definition webcface-config.h:69
#define WEBCFACE_NS_END
Definition webcface-config.h:118
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:117