forked from pz4kybsvg/Conception
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
452 B
20 lines
452 B
2 years ago
|
#include "drake/geometry/geometry_frame.h"
|
||
|
|
||
|
#include <stdexcept>
|
||
|
|
||
|
namespace drake {
|
||
|
namespace geometry {
|
||
|
|
||
|
GeometryFrame::GeometryFrame(const std::string& frame_name, int frame_group_id)
|
||
|
: id_(FrameId::get_new_id()),
|
||
|
name_(frame_name),
|
||
|
frame_group_(frame_group_id) {
|
||
|
if (frame_group_ < 0) {
|
||
|
throw std::logic_error(
|
||
|
"GeometryFrame requires a non-negative frame group");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
} // namespace geometry
|
||
|
} // namespace drake
|