Closed wsaihopfsg closed 3 years ago
In the virtual function get_scanoutput_config in pfsdp_protocol.hpp, the json_keys for "watchdog" is missing during the invocation of get_request, resulting in config.watchdog being always true.
get_scanoutput_config
pfsdp_protocol.hpp
json_keys
get_request
config.watchdog
Original code: https://github.com/PepperlFuchs/ROS_driver/blob/80c423ad038d2ff197bd81588ad40ee3f3cd56e5/pf_driver/include/pf_driver/pf/pfsdp_protocol.hpp#L385
New code:
auto resp = get_request("get_scanoutput_config", {"start_angle", "packet_type", "watchdogtimeout", "skip_scans", "watchdog"}, { KV("handle", handle) });
Solved in https://github.com/PepperlFuchs/pf_lidar_ros_driver/pull/46
In the virtual function
get_scanoutput_config
inpfsdp_protocol.hpp
, thejson_keys
for "watchdog" is missing during the invocation ofget_request
, resulting inconfig.watchdog
being always true.Original code: https://github.com/PepperlFuchs/ROS_driver/blob/80c423ad038d2ff197bd81588ad40ee3f3cd56e5/pf_driver/include/pf_driver/pf/pfsdp_protocol.hpp#L385
New code: