PepperlFuchs / pf_lidar_ros_driver

ROS driver for Pepperl+Fuchs R2000 and R2300 laser scanners
https://www.pepperl-fuchs.com/global/en/23097.htm
Apache License 2.0
39 stars 38 forks source link

still the transport: #112

Closed dlutjwh closed 1 year ago

dlutjwh commented 1 year ago

hi, when i try transplant the code to ros2, i use reinterpret_cast replace the ros2 de-serialization ,and it works. but there is another issue: the code returns [r2000_node-4] terminate called after throwing an instance of 'std::bad_weak_ptr' [r2000_node-4] what(): bad_weak_ptr in here: virtual void read(std::shared_ptr packet) { packet->read_with(*shared_from_this()); } i did not change other code,do you have any idea? is it because ros2 ? thanks i use the main branch. another thing is the version of C++ we need, is C++14 enough?