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 std::optional<RobotModel> robotModel()
const;
117 std::unique_ptr<internal::TemporalCanvas3DComponentData> msg_data;
146 std::unique_ptr<internal::TemporalCanvas3DComponentData>
147 lockTmp(
const std::shared_ptr<internal::ClientData> &data,
149 std::unordered_map<Canvas3DComponentType, int> *idx_next =
nullptr);
170 this->origin(origin);
171 return std::move(*
this);
183 return std::move(*
this);
195 return std::move(*
this);
203 this->robotModel(field);
204 return std::move(*
this);
212 angles(
const std::unordered_map<std::string, double> &angles) &;
217 angles(
const std::unordered_map<std::string, double> &angles) && {
218 this->angles(angles);
219 return std::move(*
this);
229 angles(
const std::unordered_map<std::wstring, double> &angles) &;
234 angles(
const std::unordered_map<std::wstring, double> &angles) && {
235 this->angles(angles);
236 return std::move(*
this);
252 this->angle(joint_name, angle);
253 return std::move(*
this);
269 this->angle(joint_name, angle);
270 return std::move(*
this);
Canvas3Dに表示する要素
Definition component_canvas3d.h:33
bool operator!=(const Canvas3DComponent &other) const
Definition component_canvas3d.h:80
RobotModelの送受信データを表すクラス
Definition robot_model.h:26
u8stringとstringとwstringをshared_ptrで持ち共有する
Definition encoding.h:69
Canvas3Dを構築するときに使う一時的なCanvas3DComponent.
Definition component_canvas3d.h:116
TemporalCanvas3DComponent && angle(const std::string &joint_name, double angle) &&
Definition component_canvas3d.h:250
TemporalCanvas3DComponent && geometry(const Geometry &g) &&
Definition component_canvas3d.h:193
TemporalCanvas3DComponent && origin(const Transform &origin) &&
Definition component_canvas3d.h:169
TemporalCanvas3DComponent && angles(const std::unordered_map< std::string, double > &angles) &&
Definition component_canvas3d.h:217
TemporalCanvas3DComponent && robotModel(const RobotModel &field) &&
Definition component_canvas3d.h:202
TemporalCanvas3DComponent && color(ViewColor color) &&
Definition component_canvas3d.h:181
TemporalCanvas3DComponent && angle(const std::wstring &joint_name, double angle) &&
Definition component_canvas3d.h:267
TemporalCanvas3DComponent && angles(const std::unordered_map< std::wstring, double > &angles) &&
Definition component_canvas3d.h:234
bool operator==(const T &other, const InputRef &ref)
Definition text.h:566
ViewColor
Definition component_view.h:40
Canvas3DComponentType
Definition component_canvas3d.h:20
#define WEBCFACE_DLL
Definition webcface-config.h:60
#define WEBCFACE_NS_END
Definition webcface-config.h:104
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:103