src/shape_base.cpp
ShapeBase::ShapeBase(int id)
    : heading_{ZAxis{0.0}},
      parent_frame_name_{helper::local_frame_name("z0000000")},
      shapes_list_ptr_{
          std::make_shared<std::vector<visualization_msgs::msg::Marker>>()} {
  // Get a ref to the vector of marker for ease of use
  auto& shapes_list = *shapes_list_ptr_;
  // create a new marker
  shapes_list.emplace_back();
  // get a ref to the new marker.
  auto& shape = shapes_list[0];

  shape = create_shape_base(id, visualization_msgs::msg::Marker::CUBE);
}
/**
 * \brief Example of how sphere class may be implemented, the design may not be
 *the most suitable. Trivial functionalities are not implemented.
 **/
\brief Example of how sphere class may be implemented, the design may not be
the most suitable. Trivial functionalities are not implemented.
\ brief Example of how sphere class may be implemented the design may not be the most suitable . Trivial functionalities are not implemented .
ShapeBase::ShapeBase(int id)
    : heading_{ZAxis{0.0}},
      parent_frame_name_{helper::local_frame_name("z0000000")},
      shapes_list_ptr_{
          std::make_shared<std::vector<visualization_msgs::msg::Marker>>()} {
  auto& shapes_list = *shapes_list_ptr_;
  shapes_list.emplace_back();
  auto& shape = shapes_list[0];
  shape = create_shape_base(id, visualization_msgs::msg::Marker::CUBE);
}
ShapeBase :: ShapeBase ( int id ) : heading_ { ZAxis { 0.0 } } , parent_frame_name_ { helper :: local_frame_name ( " " ) } , shapes_list_ptr_ { std :: make_shared < std :: vector < visualization_msgs :: msg :: Marker > > ( ) } { auto & shapes_list = * shapes_list_ptr_ ; shapes_list . emplace_back ( ) ; auto & shape = shapes_list [ 0 ] ; shape = create_shape_base ( id , visualization_msgs :: msg :: Marker :: CUBE ) ; }
\brief Example of how sphere class may be implemented, the design may not be
the most suitable.
\ brief Example of how sphere class may be implemented the design may not be the most suitable .
// Get a ref to the vector of marker for ease of use // create a new marker // get a ref to the new marker.