How to do amcl only with a rplidar? [closed]

asked 2017-06-15 00:42:01 -0600

Alemon gravatar image

Hey guys, I've been trying to use a rplidar A1 to achieve amcl localization.
Here's what I do, 1. rocore 2. roslaunch rplidar_ros rplidar.launch 3. rosrun map_server map_server /home/relaybot/mymap.yaml 4. rosrun tf static_transform_publisher 0 0 0 0 0 0 /base_link /laser 100 5. roslaunch laser_scan_matcher laser_scan.launch 6. rosrun amcl amcl scan:=scan 7. rosrun rviz rviz


laser_scan.launch* <launch>

publish an example base_link -> laser transform

this was the error

<node pkg="tf" type="static_transform_publisher" name="base_link_to_laser" args="0.0 0.0 0.0 0.0 0.0 0.0 /base_link /laser 40"/>

start the laser scan_matcher

<node pkg="laser_scan_matcher" type="laser_scan_matcher_node" name="laser_scan_matcher_node" output="screen">

<param name="fixed_frame" value = "odom"/>
<param name="base_frame" value="base_link"/>
<!--param name="fixed_frame" value="world"/-->
<param name="use_alpha_beta" value="true"/>
<param name="use_odom" value="false"/>
<param name="use_imu" value="false"/>
<param name="max_iterations" value="10"/>
<param name="publish_pose" value="true"/>
<param name="publish_tf" value="true"/>
<param name="use_vel" value="false"/>

</node> </launch> Is there anything wrong with behaviors above? If any, please enlighten me. Thanks a lot!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alemon
close date 2017-06-15 21:26:59.580170

Comments

What error do you get?

Humpelstilzchen gravatar imageHumpelstilzchen ( 2017-06-15 03:25:47 -0600 )edit

I got this line after step 6. Segmentation fault (core dumped) Step 5 seems to have affect to Step 6, since I didn't get anything wrong without Step 5.

Alemon gravatar imageAlemon ( 2017-06-15 03:43:56 -0600 )edit

Sounds more like a bug then a question. Better fill a bug report against the crashing node.

Humpelstilzchen gravatar imageHumpelstilzchen ( 2017-06-15 04:18:07 -0600 )edit