How to publish data in PointCloud2
I have ROS noetic installed on my pc and I am working on vrx repository.
I am using ros gpu ray sensor type="gpu_ray"
with libgazebo_ros_gpu_laser.so
plugin.
The default type of data published is sensor_msgs/LaserScan
.
I tried adding <output_type>
tag inside the <plugin>
tag in the urdf file like ROS2 but it didn't seem to work.
I want to publish the data in PointCloud2 format. How can I achieve that?