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?
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?