30 static constexpr std::size_t BlendTableSize = 33;
31 static constexpr std::size_t Capacity = 64;
35 bool has_curve =
false;
36 std::array<std::array<double, MaxAxes>, 6> ctrl{};
37 std::array<double, BlendTableSize> cumulative{};
38 double curve_length = 0.0;
39 double corner_cap = 0.0;
40 double curve_velocity = 0.0;
41 std::int64_t curve_cycles = 0;
53 Kind kind = Kind::line;
54 std::array<double, MaxAxes> entry{};
55 std::array<double, MaxAxes> dir{};
56 std::array<double, MaxAxes> target{};
57 double full_length = 0.0;
59 double trim_out = 0.0;
60 geom::ArcSegment arc_geom{};
61 otg::Limits1D limits{};
62 std::uint32_t command_id = 0;
63 double entry_velocity = 0.0;
64 double exit_velocity = 0.0;
65 otg::Profile1D profile{};
68 double line_length()
const
70 const double length = full_length - trim_in - trim_out;
71 return length > 0.0 ? length : 0.0;
79 : data_(new rt::StaticVector<Segment, Capacity>())
83 bool empty()
const {
return data_->empty(); }
84 std::size_t size()
const {
return data_->size(); }
85 Segment &operator[](std::size_t index) {
return (*data_)[index]; }
86 const Segment &operator[](std::size_t index)
const {
return (*data_)[index]; }
87 rt::ErrorCode push_back(
const Segment &value) {
return data_->push_back(value); }
88 void pop_back() { data_->pop_back(); }
89 void clear() { data_->clear(); }
92 std::unique_ptr<rt::StaticVector<Segment, Capacity>> data_;
96 otg::Profile1D stop_profile_{};
97 otg::State1D seed_state_{};
98 std::size_t depth_ = Capacity;
99 std::size_t index_ = 0;
100 std::int64_t tick_ = 0;
101 double stop_origin_ = 0.0;
102 bool active_ =
false;
103 bool in_curve_ =
false;
104 bool stopping_ =
false;
105 bool override_paused_ =
false;