예제 #1
0
 def to_msg(self):
     if not HAS_SENSOR_MSGS:
         raise NotImplementedError('ROS sensor_msgs not found')
     # TODO is there some metadata we want to attach?
     return numpy_pc2.array_to_pointcloud2(self.pc_data)
예제 #2
0
파일: pypcd.py 프로젝트: kasertim/pypcd
 def to_msg(self):
     if not HAS_SENSOR_MSGS:
         raise NotImplementedError('ROS sensor_msgs not found')
     # TODO is there some metadata we want to attach?
     return numpy_pc2.array_to_pointcloud2(self.pc_data)
예제 #3
0
 def to_msg(self):
     if not HAS_SENSOR_MSGS:
         raise Exception("ROS sensor_msgs not found")
     # TODO is there some metadata we want to attach?
     return numpy_pc2.array_to_pointcloud2(self.pc_data)
예제 #4
0
 def to_msg(self):
     if not HAS_SENSOR_MSGS:
         raise NotImplementedError('ROS sensor_msgs not found')
     return numpy_pc2.array_to_pointcloud2(self.pc_data)