27 int main(
int argc,
char** argv)
32 ROS_WARN(
"You are using an outdated version of psen_scan. Please update your scanner firmware and use the new " 33 "psen_scan_v2 package. See https://github.com/PilzDE/psen_scan_v2/#migration for detailed instruction.");
41 std::unique_ptr<Scanner> scanner = std::unique_ptr<Scanner>(
new Scanner(param_handler.
getSensorIP(),
47 std::move(udp_interface)));
58 std::cerr << e.what() << std::endl;
60 catch (std::exception& e)
62 std::cerr << e.what() << std::endl;
PSENscanInternalAngle getAngleEnd() const
Getter Method for angle_end_.
Class implements a ROS-Node for the PSENscan safety laser scanner.
static const std::string DEFAULT_PUBLISH_TOPIC
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
Degree getXAxisRotation() const
Getter Method for x_axis_rotation_.
Class for getting ROS-Parameters from the parameter-server.
std::unique_ptr< PSENscanUDPInterface > PSENscanUDPptr
PSENscanInternalAngle getAngleStart() const
Getter Method for angle_start_.
std::string getSensorIP() const
Getter Method for sensor_ip_.
uint16_t getSkip() const
Getter method for skip_.
Class for Modeling a PSENscan safety laser scanner.
uint32_t getHostUDPPort() const
Getter method for host_udp_port_.
uint32_t getHostIP() const
Getter method for host_ip_.
std::string getPassword() const
Getter method for password_.
std::string getFrameID() const
Getter method for frame_id_.
void processingLoop()
endless loop for processing incoming UDP data from the laser scanner
int main(int argc, char **argv)
Class for the UDP communication with the scanner.