Skip to content
Snippets Groups Projects
Commit 833e130b authored by Timo Weberruß's avatar Timo Weberruß
Browse files

Throw exception when human group size is 0

parent 3576ed73
No related branches found
No related tags found
2 merge requests!109Social layers,!55Draft: Implement human grouping
This commit is part of merge request !55. Comments created here will be created in the context of that merge request.
......@@ -17,6 +17,11 @@ namespace armarx::navigation::human
shapes::Polygon ConvexHullGenerator::createShape(const HumanGroup &group)
{
if (group.humans.size() == 0)
{
throw InvalidArgumentException("Human group size has to be at least 1");
}
using BoostPoly = boost::geometry::model::polygon<Point>;
using GroupPoly = shapes::Polygon;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment