26 #include "world_utils_request.pb.h" 32 #include <gazebo/gazebo_client.hh> 34 #include <Eigen/Dense> 53 public: ignition::math::Pose3d
pose;
55 public: ignition::math::Vector3d
scale;
59 public: std::vector<Eigen::Vector4f>
points;
82 const std::string & _name,
83 const ignition::math::Pose3d & _pose,
84 const ignition::math::Vector3d & _scale,
85 const std::vector<double> & _parameters
117 public:
int counters[3] = {0};
120 public:
const std::vector<std::string> TYPES = {
"sphere",
"cylinder",
"box"};
137 public:
void populate(
int num_objects);
142 private:
void addRandomObject(
int x,
int y);
float grid_y
Size of y dimension.
Definition: ObjectGrid.hh:103
Object in 2D grid.
Definition: ObjectGrid.hh:44
float cell_z
Height of each cell.
Definition: ObjectGrid.hh:113
std::vector< double > parameters
Object parameter values.
Definition: ObjectGrid.hh:57
const double ANGLE_STEP_C
Sample 3D points on object surface.
Definition: ObjectGrid.hh:66
std::vector< Object > objects
List of objects in grid.
Definition: ObjectGrid.hh:115
ignition::math::Pose3d pose
Object 3D world pose.
Definition: ObjectGrid.hh:53
ignition::math::Vector3d scale
Object scale vector.
Definition: ObjectGrid.hh:55
const double TOTAL_STEPS_S
Sample 3D points on object surface.
Definition: ObjectGrid.hh:72
float grid_x
Size of x dimension.
Definition: ObjectGrid.hh:101
const double TOTAL_STEPS_C
Sample 3D points on object surface.
Definition: ObjectGrid.hh:68
Object(int &_type, const std::string &_name, const ignition::math::Pose3d &_pose, const ignition::math::Vector3d &_scale, const std::vector< double > &_parameters)
Constructor.
Definition: ObjectGrid.cc:28
std::vector< int > cells
Array of grid cells.
Definition: ObjectGrid.hh:99
std::vector< int > bounding_box
Object 2D bounding box.
Definition: ObjectGrid.hh:61
std::vector< Eigen::Vector4f > points
Object surface 3D points.
Definition: ObjectGrid.hh:59
float cell_x
Size of each cell in x dimension.
Definition: ObjectGrid.hh:109
int num_cells_x
Number of cells in x dimension.
Definition: ObjectGrid.hh:105
int type
Object type.
Definition: ObjectGrid.hh:49
float cell_y
Size of each cell in y dimension.
Definition: ObjectGrid.hh:111
Object 2D grid.
Definition: ObjectGrid.hh:94
Generic utilities for scene generation example.
const double ANGLE_STEP_S
Sample 3D points on object surface.
Definition: ObjectGrid.hh:70
int num_cells_y
Number of cells in y dimension.
Definition: ObjectGrid.hh:107
std::string name
Object name.
Definition: ObjectGrid.hh:51
void sampleSurface()
Sample 3D points on object surface.
Definition: ObjectGrid.cc:41