Skip to content

Commit 60750e9

Browse files
committed
fix rplidar_laser_link name issue (#40, #53)
- Rename rplidar_gpu_laser_link to rplidar_laser_link in bringup_with_laser.launch - Add rplidar.launch to diffbot_bringup to support framed_id argument - Make use of new diffbot_bringup/launch/rplidar.launch in bringup_with_laser.launch This solves issues in RViz: Transform [sender=unknown_publisher] For frame [rplidar_gpu_laser_link]: Frame [rplidar_gpu_laser_link] does not exist and in the terminal from whic diffbot_slam is launched: [ WARN] [1635345613.864692611]: MessageFilter [target=odom ]: Dropped 100.00% of messages so far. Please turn the [ros.gmapping.message_filter] rosconsole logger to DEBUG for more information.
1 parent 83bcaf0 commit 60750e9

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

diffbot_bringup/launch/bringup_with_laser.launch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<launch>
2-
<arg name="laser_frame_id" default="rplidar_gpu_laser_link" />
2+
<arg name="laser_frame_id" default="rplidar_laser_link" />
33
<!--arg name="model" default="$(env DIFFBOT_MODEL)" doc="model type [diffbot, remo]"/-->
44
<arg name="model" default="diffbot" doc="model type [diffbot, remo]"/>
55

@@ -22,7 +22,7 @@
2222
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"
2323
output="screen" ns="diffbot" />
2424

25-
<include file="$(find rplidar_ros)/launch/rplidar.launch" ns="diffbot">
25+
<include file="$(find diffbot_bringup)/launch/rplidar.launch" ns="diffbot">
2626
<arg name="laser_frame_id" value="$(arg laser_frame_id)" />
2727
</include>
2828

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<launch>
2+
<arg name="laser_frame_id" default="rplidar_laser_link" />
3+
4+
<node name="rplidarNode" pkg="rplidar_ros" type="rplidarNode" output="screen">
5+
<param name="serial_port" type="string" value="/dev/ttyUSB0"/>
6+
<param name="serial_baudrate" type="int" value="115200"/><!--A1/A2 -->
7+
<!--param name="serial_baudrate" type="int" value="256000"--><!--A3 -->
8+
<param name="frame_id" type="string" value="$(arg laser_frame_id)"/>
9+
<param name="inverted" type="bool" value="false"/>
10+
<param name="angle_compensate" type="bool" value="true"/>
11+
</node>
12+
</launch>

0 commit comments

Comments
 (0)