se2ez
se2ez::CollisionManager::SignedDistance Struct Reference

A class that contains all information about the signed distance of a frame to another. More...

#include <collision.h>

Public Member Functions

void flip ()
 Flips the direction of the normal and swaps the endpoint. More...
 

Public Attributes

SE2EZ_EIGEN_CLASS double distance {math::inf}
 Distance to collision. More...
 
Eigen::Vector2d point
 Point on fixture where normal begins. More...
 
Eigen::Vector2d normal
 Normal vector to collision. More...
 
std::string frame
 Frame closet to collision. More...
 
std::string collider
 Frame this frame is closest to collision with. More...
 

Detailed Description

A class that contains all information about the signed distance of a frame to another.

Definition at line 75 of file collision.h.

Member Function Documentation

◆ flip()

void CollisionManager::SignedDistance::flip ( )

Flips the direction of the normal and swaps the endpoint.

Collision Manager

Definition at line 45 of file collision.cpp.

Member Data Documentation

◆ collider

std::string se2ez::CollisionManager::SignedDistance::collider

Frame this frame is closest to collision with.

Definition at line 83 of file collision.h.

◆ distance

SE2EZ_EIGEN_CLASS double se2ez::CollisionManager::SignedDistance::distance {math::inf}

Distance to collision.

Definition at line 79 of file collision.h.

◆ frame

std::string se2ez::CollisionManager::SignedDistance::frame

Frame closet to collision.

Definition at line 82 of file collision.h.

◆ normal

Eigen::Vector2d se2ez::CollisionManager::SignedDistance::normal

Normal vector to collision.

Definition at line 81 of file collision.h.

◆ point

Eigen::Vector2d se2ez::CollisionManager::SignedDistance::point

Point on fixture where normal begins.

Definition at line 80 of file collision.h.


The documentation for this struct was generated from the following files: