From e18e865d3b766b1caaa5e680cd380e9e246885ed Mon Sep 17 00:00:00 2001 From: nekanat Date: Sat, 22 Apr 2023 12:46:47 +0900 Subject: [PATCH] update example --- examples/python/ros/laserscan_msg_convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python/ros/laserscan_msg_convert.py b/examples/python/ros/laserscan_msg_convert.py index 39094ea1..b67ef41d 100644 --- a/examples/python/ros/laserscan_msg_convert.py +++ b/examples/python/ros/laserscan_msg_convert.py @@ -42,6 +42,6 @@ new_msg.angle_increment = (scan.max_angle - scan.min_angle) / scan.num_steps new_msg.range_min = 0.0 new_msg.range_max = 10000.0 - new_msg.ranges = scan.pop_host_one_scan() + new_msg.ranges, new_msg.intensities = scan.pop_host_one_scan() print("------ Original laserscan ------ \n", msg) print("------ Converted laserscan ------\n", new_msg)