|
bitsim
Model, simulate, estimate and control robots in C++
|
class LineSegmentLink. Represents a straight line link between two waypoints. More...
#include <line_segment_link.h>


Public Types | |
| using | node_data_type = NodeData |
| using | segment_data_type = SegmentData |
| using | w_point_type = WayPoint<dim, NodeData> |
Public Member Functions | |
| LineSegmentLink () | |
| Default ctor. | |
| LineSegmentLink (const w_point_type &v1, const w_point_type &v2, uint_t id, const segment_data_type &data) | |
| Constructor. | |
| LineSegmentLink (const w_point_type &v1, const w_point_type &v2, uint_t id) | |
| Constructor. | |
| real_t | distance (const bitsim::geometry::GeomPoint< dim > &p) const |
| The distance of the point from the segment, for WaypointTrajectory::distance. | |
| const segment_data_type & | get_data () const noexcept |
| The data of the segment. | |
| bool | is_active () const |
| Returns true if the segment is active. | |
| void | deactivate () |
| deactive the segment | |
| void | make_active () |
| Activate the segment. | |
Static Public Attributes | |
| static const int | dimension = dim |
class LineSegmentLink. Represents a straight line link between two waypoints.
| using bitsim::trajectory::LineSegmentLink< dim, NodeData, SegmentData >::node_data_type = NodeData |
| using bitsim::trajectory::LineSegmentLink< dim, NodeData, SegmentData >::segment_data_type = SegmentData |
| using bitsim::trajectory::LineSegmentLink< dim, NodeData, SegmentData >::w_point_type = WayPoint<dim, NodeData> |
| bitsim::trajectory::LineSegmentLink< dim, NodeData, SegmentData >::LineSegmentLink | ( | ) |
Default ctor.
| bitsim::trajectory::LineSegmentLink< dim, NodeData, SegmentData >::LineSegmentLink | ( | const w_point_type & | v1, |
| const w_point_type & | v2, | ||
| uint_t | id, | ||
| const segment_data_type & | data ) |
Constructor.
| bitsim::trajectory::LineSegmentLink< dim, NodeData, SegmentData >::LineSegmentLink | ( | const w_point_type & | v1, |
| const w_point_type & | v2, | ||
| uint_t | id ) |
Constructor.
|
inline |
deactive the segment
|
inline |
The distance of the point from the segment, for WaypointTrajectory::distance.
|
inlinenoexcept |
The data of the segment.
|
inline |
Returns true if the segment is active.
|
inline |
Activate the segment.
|
static |