SickLDMRS¶
- class SickLDMRS(*args, **kwargs)¶
Bases:
LaserScanner
Driver for the Sick LD-MRS laser scanner.
Warning
For the moment, this driver works only on UNIX platform.
The code below shows how the four laser scan provided by the Sick LD-MRS could be acquired.
#include "visp3/sensor/vpSickLDMRS.h" #ifdef ENABLE_VISP_NAMESPACE using namespace VISP_NAMESPACE_NAME; #endif int main() { #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))) // UNIX std::string ip = "131.254.12.119"; vpSickLDMRS laser; laser.setIpAddress(ip); laser.setup(); vpLaserScan laserscan[4]; for ( ; ; ) { // Get the measured points in the four layers laser.measure(laserscan); // Prints all the measured points for (int layer=0; layer<4; layer++) { std::vector<vpScanPoint> pointsInLayer = laserscan[layer].getScanPoints(); vpScanPoint p; for (unsigned int i=0; i < pointsInLayer.size(); i++) { std::cout << pointsInLayer[i] << std::endl; } } } #endif }
Overloaded function.
__init__(self: visp._visp.sensor.SickLDMRS) -> None
Default constructor that initialize the Ethernet address to “131.254.12.119”, set the port to 12002 and allocates memory for the body messages.
__init__(self: visp._visp.sensor.SickLDMRS, sick: visp._visp.sensor.SickLDMRS) -> None
Copy constructor.
Methods
Overloaded function.
Overloaded function.
Inherited Methods
Set the communication port.
Set the Ethernet address of the laser.
Operators
__doc__
Overloaded function.
__module__
Attributes
MagicWordC2
MeasuredData
__annotations__
- class DataType(self, value: int)¶
Bases:
pybind11_object
Values:
MeasuredData: Flag to indicate that the body of a message contains measured data.
- class MagicWord(self, value: int)¶
Bases:
pybind11_object
Values:
MeasuredData: Flag to indicate that the body of a message contains measured data.
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: visp._visp.sensor.SickLDMRS) -> None
Default constructor that initialize the Ethernet address to “131.254.12.119”, set the port to 12002 and allocates memory for the body messages.
__init__(self: visp._visp.sensor.SickLDMRS, sick: visp._visp.sensor.SickLDMRS) -> None
Copy constructor.
- setup(*args, **kwargs)¶
Overloaded function.
setup(self: visp._visp.sensor.SickLDMRS, ip: str, port: int) -> bool
Initialize the connection with the Sick LD-MRS laser scanner.
- Returns:
true if the device was initialized, false otherwise.
setup(self: visp._visp.sensor.SickLDMRS) -> bool
Initialize the connection with the Sick LD-MRS laser scanner.
- Returns:
true if the device was initialized, false otherwise.