ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Remapping rostopic from the existing ReadOnly launch file

asked 2022-02-18 16:16:03 -0500

kiru gravatar image

I have an RPLidar and I installed the necessary packages. Right now, the laser data is published to the /scan topic and I can see the output from Rviz.

I have another project and I should use this implementation for that: https://github.com/praveen-palanisamy...

Now, the problem is: I should publish the scan data to the filtered_cloud rostopic but I could not figure out how.

I have read about remapping but the problem is:

The src folder and rplidar.launch files are ReadOnly.

The rplidar.launch is:

<launch>
  <node name="rplidarNode"          pkg="rplidar_ros"  type="rplidarNode" output="screen">
  <param name="serial_port"         type="string" value="/dev/ttyUSB0"/>
  <param name="serial_baudrate"     type="int"    value="115200"/><!--A1/A2 -->
  <!--param name="serial_baudrate"     type="int"    value="256000"--><!--A3 -->
  <param name="frame_id"            type="string" value="laser"/>
  <param name="inverted"            type="bool"   value="false"/>
  <param name="angle_compensate"    type="bool"   value="true"/>
  </node>
</launch>

This file and the folder in it are ReadOnly how am I going to remap the /scan points to the filtered_cloud? Can you please give detailed instructions for that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-02-19 00:21:12 -0500

Robo_guy gravatar image

updated 2022-02-19 00:28:13 -0500

Hi @kiru, so regarding remapping in read only files, you can refer to this link - http://wiki.ros.org/roslaunch/XML/arg With this you can make your own launch file and then include the read only launch file within which you can assign your own required values to arguments or parameters and also remap topics, refer the link you will understand better. I have personally used this https://github.com/praveen-palanisamy... package sometime back. One cannot directly publish the scan data to the filtered_cloud topic, you will need some package like laser_assembler that converts the laser scans to point cloud and then remap the topic on which the point cloud is published to filtered_cloud topic. Since I have personally used this package , from my experience I will say it is not much efficient and is slow in detecting and tracking objects, so just giving you a heads-up in advance, all the best and hope so this solves your problem.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-02-18 16:16:03 -0500

Seen: 81 times

Last updated: Feb 19 '22