Open PhilipAmadasun opened 2 years ago
Hi @DistroIII
You may include the laser_filter launch command in the turtlebot3_navigation launch file.
The default turtlebot3 packages use the scan
topic for basic operation, so you should change this topic name to whatever the published topic name you wrote in the laser_filter node.
If the laser_filter node correctly receives the scan
topic as an input, you should be able to see the filtered scan message as a publisher in your ROS network.
Thanks!
@ROBOTIS-Will okay so the base_scan
is the issue here then. I have very little knowledge on how to manipulate launch files. Please bare with me in guiding me through how I should include the my_laser_filter.launch command to mt turtlebot3_navigation.launch file and have it work.
Here is my_laser filter.launch file:
<launch>
<node pkg="laser_filters" type="scan_to_scan_filter_chain"
name="laser_filter">
<rosparam command="load" file="$(find test)/my_laser_config.yaml" />
<remap from="scan" to="base_scan" />
</node>
</launch>
Here is my turtlebot3_navigation.launch:
<launch>
<!-- Arguments -->
<arg name="model" default="$(env TURTLEBOT3_MODEL)" doc="model type [burger, waffle, waffle_pi]"/>
<arg name="map_file" default="$(find turtlebot3_navigation)/maps/map.yaml"/>
<arg name="open_rviz" default="true"/>
<arg name="move_forward_only" default="false"/>
<!-- Turtlebot3 -->
<include file="$(find turtlebot3_bringup)/launch/turtlebot3_remote.launch">
<arg name="model" value="$(arg model)" />
</include>
<!-- Map server -->
<node pkg="map_server" name="map_server" type="map_server" args="$(arg map_file)"/>
<!-- AMCL -->
<include file="$(find turtlebot3_navigation)/launch/amcl.launch"/>
<!-- move_base -->
<include file="$(find turtlebot3_navigation)/launch/move_base.launch">
<arg name="model" value="$(arg model)" />
<arg name="move_forward_only" value="$(arg move_forward_only)"/>
</include>
<!-- rviz -->
<group if="$(arg open_rviz)">
<node pkg="rviz" type="rviz" name="rviz" required="true"
args="-d $(find turtlebot3_navigation)/rviz/turtlebot3_navigation.rviz"/>
</group>
</launch>
ISSUE TEMPLATE ver. 0.4.0
Which TurtleBot3 platform do you use?
Which ROS is working with TurtleBot3?
Which SBC(Single Board Computer) is working on TurtleBot3?
Which OS you installed on SBC?
Which OS you installed on Remote PC?
Specify the software and firmware version(Can be found from Bringup messages)
Specify the commands or instructions to reproduce the issue.
Copy and Paste the error messages on terminal.
Please describe the issue in detail.
I had recently reported an issue with my real life turtlebot3 LiDAR sensor and how it detects fake obstacles. I found a package that might help me called laser_filter. I have a hard time making it work.I install the package, make a yaml file and make a launch file, I run the launch file, it runs but doesnt seem to do anything. I think I have to somehow incorporate the launch file with one of the turtlebot3 luanhc files, I think I'm maybe supposed to run the launch file through the turtlebot3_navigation.launch file? I know that the amcl.launch file and move_base.launch files are run through the turtlebot3_naviation.launch file so I'm guessing thats what I should so with my _laser_filter.launch file? I am very grateful for any help.