Skip to content

Commit

Permalink
Merge pull request #341 from agri-gaia/fix/polygon-missing-pointcloud…
Browse files Browse the repository at this point in the history
…-query

fix server crash on leaving out polygon2d in fb_query_pointcloud
  • Loading branch information
Mark-Niemeyer authored Oct 9, 2023
2 parents 6e07c5e + 98497cd commit bc1a821
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions seerep_srv/seerep_server/src/fb_point_cloud_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ FbPointCloudService::GetPointCloud2(grpc::ServerContext* context,
std::stringstream debuginfo;

debuginfo << "sending point clouds with this query parameters: ";
for (auto point : *requestRoot->polygon()->vertices())
if (requestRoot->polygon() != NULL)
{
debuginfo << "bounding box vertex (" << point->x() << ", " << point->y() << ") /";
for (auto point : *requestRoot->polygon()->vertices())
{
debuginfo << "bounding box vertex (" << point->x() << ", " << point->y() << ") /";
}
debuginfo << "bounding box z " << requestRoot->polygon()->z() << " /";
debuginfo << "bounding box height " << requestRoot->polygon()->height() << " /";
}
debuginfo << "bounding box z " << requestRoot->polygon()->z() << " /";
debuginfo << "bounding box height " << requestRoot->polygon()->height() << " /";
if (requestRoot->timeinterval() != NULL)
{
debuginfo << "\n time interval (seconds since epoch: " << requestRoot->timeinterval()->time_min()->seconds()
Expand Down

0 comments on commit bc1a821

Please sign in to comment.