Go to the documentation of this file.
26 : band_width_(0.2), max_length_(max_length) {
41 bool sufficient_delta =
false;
42 if (!need_to_initialize) {
50 if (need_to_initialize || sufficient_delta) {
59 if (
mode == BandMode::kNormal ||
mode == BandMode::kKeepRight) {
64 if (
mode == BandMode::kNormal ||
mode == BandMode::kKeepLeft) {
70 if (
mode != BandMode::kNormal) {
80 if (need_to_initialize) {
111 for (
size_t i = 0;
i <
v.size() - 1; ++
i) {
122 if (
i ==
v.size() - 2) {
136 glm::mat4 mvp_mat = projection_mat * view_mat * model_mat;
144 glDrawArrays(GL_TRIANGLE_STRIP, 0,
vertices_v_.size());
glm::vec3 ApplyTransform(const glm::mat4 &mat, const glm::vec3 &vec)
Band(const unsigned int max_legnth)
static const float kMinDistanceSquared
GLM_FUNC_DECL const genType::value_type * value_ptr(genType const &vec)
GLM_FUNC_DECL genType normalize(genType const &x)
void SetWidth(const float width)
GLM_FUNC_DECL detail::tvec3< T, P > cross(detail::tvec3< T, P > const &x, detail::tvec3< T, P > const &y)
void UpdateVertexArray(const glm::mat4 m, BandMode mode)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Array< int, Dynamic, 1 > v
Point3 position(const NavState &X, OptionalJacobian< 3, 9 > H)
void glUniformMatrix4fv(GLuint, int, int, float *)
glm::vec3 GetTranslationFromMatrix(const glm::mat4 &mat)
void Render(const glm::mat4 &projection_mat, const glm::mat4 &view_mat) const
GLM_FUNC_DECL matType< T, P > inverse(matType< T, P > const &m)
void SetVertexArray(const std::vector< glm::vec3 > &v, const glm::vec3 &up)
float DistanceSquared(const glm::vec3 &v1, const glm::vec3 &v2)
std::vector< glm::vec3 > vertices_v_
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:06