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

有人使用Qt跑第6章含有rosbag程序遇到我这样的问题了吗? #133

Open
teachermaDSM opened this issue Dec 14, 2023 · 4 comments

Comments

@teachermaDSM
Copy link

使用qt直接运行的时候由于没有source /opt/ros/melodic/setup.bash,运行带有rosbag的包会报错;
[rospack] Error: package 'rosbag_storage' not found [librospack]: error while executing command terminate called after throwing an instance of 'pluginlib::ClassLoaderException' what(): Unable to find package: rosbag_storage
请问这个该如何解决?
ps:在自己的终端中直接./bin/test_lidar_io没有问题

@teachermaDSM
Copy link
Author

teachermaDSM commented Dec 14, 2023

由于想查看有些变量的变化,需要使用Qt进行Debug,因此请教大家如何配置QtCreator才可以解决该问题。。。
高翔老师救命!

@teachermaDSM teachermaDSM changed the title 有人使用Qt跑rosbag遇到我这样的问题了吗? 有人使用Qt跑第6章含有rosbag程序遇到我这样的问题了吗? Dec 14, 2023
@qiaoyaya2011
Copy link

qiaoyaya2011 commented Oct 10, 2024

你好,想问你怎么解决的,我目前用vscode进行debug也遇到这样的问题,请问最后怎么解决的啊。 @teachermaDSM

@qiaoyaya2011
Copy link

[rospack] Error: package 'rosbag_storage' not found
[librospack]: error while executing command
terminate called after throwing an instance of 'pluginlib::ClassLoaderException'
what(): Unable to find package: rosbag_storage

@teachermaDSM
Copy link
Author

你好,想问你怎么解决的,我目前用vscode进行debug也遇到这样的问题,请问最后怎么解决的啊。 @teachermaDSM

没有特别好的办法,原因我想应该就是没有source那个ros对应的setup.bash导致rosbag无法找到,我后面都是用打印log来debug的,希望高翔老师能给些debug含有rosbag的方法

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

2 participants