8 #include <pybind11/native_enum.h>
9 #include <pybind11/pybind11.h>
13 #include "../casters.h"
16 using namespace pybind11::literals;
20 py::class_<ccGBLSensor, ccSensor> pyccGBLSensor(m,
"ccGBLSensor");
22 py::native_enum<ccGBLSensor::ROTATION_ORDER>(
23 pyccGBLSensor,
"ROTATION_ORDER",
"enum.Enum",
"ccGBLSensor ROTATION_ORDER.")
24 .value(
"YAW_THEN_PITCH", ccGBLSensor::ROTATION_ORDER::YAW_THEN_PITCH)
25 .value(
"PITCH_THEN_YAW", ccGBLSensor::ROTATION_ORDER::PITCH_THEN_YAW)
30 .def(py::init<ccGBLSensor::ROTATION_ORDER>(),
31 "rotOrder"_a = ccGBLSensor::ROTATION_ORDER::YAW_THEN_PITCH)
58 double posIndex = 0) -> py::tuple
62 self.projectPoint(sourcePoint, destPoint, depth, posIndex);
63 return py::make_tuple(destPoint, depth);
float PointCoordinateType
Type of the coordinates of a (N-D) point.
void define_ccGBLSensor(py::module &m)
Ground-based Laser sensor.
void setRotationOrder(ROTATION_ORDER rotOrder)
Sets the sensor internal rotations order.
PointCoordinateType getMinPitch() const
Returns the minimal pitch limit (in radians)
PointCoordinateType getSensorRange() const
Returns the sensor max. range.
PointCoordinateType getMinYaw() const
Returns the minimal yaw limit (in radians)
void setYawRange(PointCoordinateType minTheta, PointCoordinateType maxTheta)
Sets the yaw scanning limits.
void setUncertainty(PointCoordinateType u)
Sets the Z-buffer uncertainty on depth values.
PointCoordinateType getUncertainty() const
Returns the Z-buffer uncertainty on depth values.
void setPitchRange(PointCoordinateType minPhi, PointCoordinateType maxPhi)
Sets the pitch scanning limits.
bool computeAutoParameters(cloudViewer::GenericCloud *theCloud)
Computes angular parameters automatically (all but the angular steps!)
static QString GetErrorString(int errorCode)
Returns the error string corresponding to an error code.
bool yawIsShifted() const
void setSensorRange(PointCoordinateType range)
Sets the sensor max. range.
PointCoordinateType getPitchStep() const
Returns the lateral pitch step (in radians)
PointCoordinateType getMaxYaw() const
Returns the maximal yaw limit (in radians)
void setYawStep(PointCoordinateType dTheta)
Sets the yaw step.
bool pitchIsShifted() const
ROTATION_ORDER getRotationOrder() const
Returns the sensor internal rotations order.
PointCoordinateType getMaxPitch() const
Returns the maximal pitch limit (in radians)
PointCoordinateType getYawStep() const
Returns the yaw step (in radians)
void setPitchStep(PointCoordinateType dPhi)
Sets the pitch step.