9 #ifndef FARM_COMMON_HPP 10 #define FARM_COMMON_HPP 12 #include <tf2/LinearMath/Vector3.h> 13 #include <tf2/LinearMath/Quaternion.h> 14 #include <geometry_msgs/Point32.h> 93 std::ostream &
operator<<(std::ostream &stream,
const tf2::Vector3 &v);
104 geometry_msgs::Point32 pt;
tf2::Vector3 position
Position of the alga on the line.
float buoys_diameter
Diameter of a buoy.
Rope floating_rope
Rope on wich the buoys are.
float thickness_ropes
Thickness of each rope.
Rope tensed between two 3D points.
float anchors_diameter
Anchors diameter.
tf2::Vector3 anchor1
First anchor.
tf2::Vector3 anchor2
Second anchor.
std::vector< Alga > algae
List of algae hanging on the line.
std::vector< std::vector< float > > disease_heatmap
Heatmap representing disease across the alga.
float width
Width of the alga.
geometry_msgs::Point32 vector3_to_point32(tf2::Vector3 p)
Convert a tf2::Vector3 to a geometry_msgs::Point32.
tf2::Vector3 p1
Position of the first extremity of the rope.
tf2::Vector3 p2
Position of the second extremity of the rope.
Rope line
Rope on wich the algae grow.
float length
Length of the alga.
unsigned int nbr_buoys
Number of buoys on the floating rope.
float anchors_height
Anchors height.
Line on which algae grow.
std::ostream & operator<<(std::ostream &stream, const tf2::Vector3 &v)
Displays a vector.
std::vector< tf2::Vector3 > get_alga_coord(const AlgaeLine &line, const Alga &alga)
Computes the corner coordinates of an alga.
float orientation
Orientation of the alga.