Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行后rviz看不到图像,编译没有报错 #13

Open
heisetiantang opened this issue Jul 6, 2023 · 7 comments
Open

运行后rviz看不到图像,编译没有报错 #13

heisetiantang opened this issue Jul 6, 2023 · 7 comments

Comments

@heisetiantang
Copy link

我的lanuch文件



<!--- rviz -->
<node pkg="rviz" type="rviz" name="dcl_rviz" args="-d $(find dcl_slam)/config/dcl_rviz.rviz" />
<!--<node pkg="dcl_slam" type="loopVisualizationNode" name="loopVisualizationNode" output="screen" />-->

<!-- Robot list -->
<include file="$(find dcl_slam)/launch/single_ugv.launch">
	<arg name="robotPrefix" value="a"/>
	<arg name="respawnValue" value="$(arg set_respawn_value)"/>
	<arg name="lioType" value="$(arg set_lio_type)"/>
</include>

<include file="$(find dcl_slam)/launch/single_ugv.launch">
	<arg name="robotPrefix" value="b"/>
	<arg name="respawnValue" value="$(arg set_respawn_value)"/>
	<arg name="lioType" value="$(arg set_lio_type)"/>
</include>

<include file="$(find dcl_slam)/launch/single_ugv.launch">
	<arg name="robotPrefix" value="c"/>
	<arg name="respawnValue" value="$(arg set_respawn_value)"/>
	<arg name="lioType" value="$(arg set_lio_type)"/>
</include>

<!-- rosbag player node ->> you need to change bag file here!!! -->
<!-- SYSU S3E bag file path -->
<!-- <arg name="SYSU_bag" value="$(env HOME)/SYSU_STATUE.bag"/> -->
<!-- <arg name="SYSU_bag" value="$(env HOME)/SYSU_FOOTBALL_FIELD_1.bag"/>  -->
<!-- <arg name="SYSU_bag" value="$(env HOME)/rosbag-data/S3E/SYSU_FOOTBALL_FIELD_2.bag"/>  -->
<!-- <arg name="SYSU_bag" value="$(env HOME)/rosbag-data/S3E/SYSU_LIVING_QUARTERS.bag"/> -->
<arg name="SYSU_bag" value="$(env HOME)/rosbag-data/S3E/S3E_Square_2.bag"/>
<!-- <arg name="SYSU_bag" value="$(env HOME)/rosbag-data/S3E/SYSU_LABORATORY_BUILDING.bag"/> -->
<!-- <arg name="SYSU_bag" value="$(env HOME)/rosbag-data/S3E/SYSU_TEACHING_BUILDING.bag"/> -->
<!-- <arg name="SYSU_bag" value="$(env HOME)/rosbag-data/S3E/SYSU_ARCHWAY_2.bag"/> -->

<!-- <arg name="SYSU_bag" value="$(env HOME)/rosbag-data/S3E/SYSU_GEZHIYUAN_1.bag"/> -->
<!-- <arg name="SYSU_bag" value="$(env HOME)/rosbag-data/S3E/SYSU_GEZHIYUAN_2.bag"/> -->
<!-- <arg name="SYSU_bag" value="$(env HOME)/rosbag-data/S3E/SYSU_GEZHIYUAN_3.bag"/> -->
<!-- <arg name="SYSU_bag" value="$(env HOME)/rosbag-data/S3E/SYSU_GEZHIYUAN_4.bag"/> -->

<remap from="/Alpha/velodyne_points" to="/a/velodyne_points"/>
<remap from="/Bob/velodyne_points" to="/b/velodyne_points"/>
<remap from="/Carol/velodyne_points" to="/c/velodyne_points"/>
<remap from="/Alpha/imu/data" to="/a/imu/data"/>
<remap from="/Bob/imu/data" to="/b/imu/data"/>
<remap from="/Carol/imu/data" to="/c/imu/data"/>

<!-- <node name="player2" pkg="rosbag" type="play" output="screen" args="-r 1 -q -d 8 $(arg SYSU_bag)"/> -->

<arg name="bag_file3" value="$(env HOME)/rosbag-data/S3E/S3E_Square_2.bag"/>
<arg name="bag_file4" value="$(env HOME)/2022_07_22_19_54_37_rect.bag"/>
<arg name="bag_file5" value="$(env HOME)/2022_07_22_20_01_00_rect.bag"/>
<node name="player3" pkg="rosbag" type="play" output="screen" args="-r 1 -p a -q -d 2 $(arg bag_file3)"/>
<!--<node name="player4" pkg="rosbag" type="play" output="screen" args="-r 1 -p b -q -d 2 $(arg bag_file4)"/>-->
<!-- <node name="player5" pkg="rosbag" type="play" output="screen" args="-r 1 -p c -q -d 2 $(arg bag_file5)"/> -->

反映
2023-07-06 17-29-32 的屏幕截图
2023-07-06 17-29-40 的屏幕截图

看不到有点云或者其他的现象,

@zhongshp
Copy link
Collaborator

zhongshp commented Nov 1, 2023

Hi~ heisetiantang
你的launch想要实现的目标似乎是play S3E_Square_2.bag,并且已经做了topic的remap。
但是你播放bag_file3时加入了-p a,这会使得话题加上了prefix 'a',如你的终端所示,即你的目前话题为/a/Alpha/xxx,而一般情况下,DCL-SLAM需要的话题名称为a/xxx。

@WLXM0922
Copy link

Hi~ heisetiantang
你的问题解决了吗?我也是这个问题?请教一下如何解决的?非常感谢!

@lcxiha
Copy link

lcxiha commented Nov 29, 2023

Hi~ heisetiantang 你的launch想要实现的目标似乎是play S3E_Square_2.bag,并且已经做了topic的remap。 但是你播放bag_file3时加入了-p a,这会使得话题加上了prefix 'a',如你的终端所示,即你的目前话题为/a/Alpha/xxx,而一般情况下,DCL-SLAM需要的话题名称为a/xxx。

你好,请问rviz无法显示与global status为error有关系吗?

@heisetiantang
Copy link
Author

已经解决了

@WLXM0922
Copy link

WLXM0922 commented Dec 5, 2023

已经解决了

您好,请问您如何解决的呢?我一直调试没有成功。方便说一下吗?非常感谢

@8613425400769
Copy link

@heisetiantang ,请问
这两个bag是在哪下载的,

@8613425400769
Copy link

您好,请问您如何解决的呢?我一直调试没有成功。方便说一下吗?非常感谢

请问有解决方案了吗,我也是调试了好久没有显示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants