Jul-28-2023, 08:34 AM
(This post was last modified: Jul-28-2023, 08:34 AM by jttolleson.)
well, I have been learning a lot.... at first i new nothing about serial communication in python now i am learning more....
this is the actual answer, not the whole code to my question about, well, now, importing.
this is the actual answer, not the whole code to my question about, well, now, importing.
from sensor_msgs.msg import LaserScan import laser_geometry.laser_geometry as lg #i had some difficulty here..... from laser_geometry import LaserProjection #much more here import sensor_msgs.point_cloud2 as pcl2 #glad it is resolved some msg = laserscan() # return value msg from laserscan() lp = lg.LaserProjection() # make lp out of modules pointcloud2 = lp.projectLaser(msg) #use lp to get a pcl from scan pointlist = pcl2.read_points_list(pointcloud2) print (pointlist)