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

Can't run vins_rviz.launch successfully #4

Open
edward-wq opened this issue May 24, 2017 · 12 comments
Open

Can't run vins_rviz.launch successfully #4

edward-wq opened this issue May 24, 2017 · 12 comments

Comments

@edward-wq
Copy link

Hi, I'm very glad to see this open-source project and can't wait to run it on my PC. Thanks for your contribution to the community!

But when I run " roslaunch vins_estimator vins_rviz.launch" after another two step("rosbag play xxx.bag" and "roslaunch vins_estimator euroc.launch" ) which have been run successfully, I met an error:

screenshot from 2017-05-24 11 07 45

The node run in the vins_rviz.launch is "rvizvisualisation" which belongs to package rviz, but I can't search the node in my indigo ROS. I replace "rvizvisualisation" with node "rviz", but the same error occured. If I just run "rosrun rviz rviz" by not adding "vins_rviz_config.rviz" , it works. Don't the config file and node "rviz" match each other?
How can I solve this problem? Where can I get the rvizvisualisation node?

Thank you!!!

@qintonguav
Copy link
Member

qintonguav commented May 24, 2017

rvizvisualisation is just a name, can be replaced by arbitrary words. The package and type are rviz.
Maybe version conflict.

  1. check the path /home/wangqi/catkin_ws/src/VINS-Mono-master/vins_estimator/../config/vins_rviz_config.rviz is right or not...
  2. Try update your RVIZ.
    sudo apt-get install ros-indigo-rviz
  3. This launch file is not necessary. You can directly open RVIZ, add the corresponding topics.

screenshot from 2017-05-24 12 05 20

@edward-wq
Copy link
Author

Oh...the rvizvisualisation is just a name!! All right, forgive me, it was careless of me...

Fortunately, I solved the problem by deleting "-d" in vins_rviz.launch(My file path is right and the rviz is newest version),now it is:
<launch>
<node name="rvizvisualisation" pkg="rviz" type="rviz" output="log" args="$(find vins_estimator)/../config/vins_rviz_config.rviz" />
</launch>

Thanks for your answer.

@qintonguav
Copy link
Member

@wangqi123412431
It should be "-d". see the help menu of RVIZ. Anyway, it doesn't matter....

tony-ws@tony-ws:~$ rosrun rviz rviz --help
[ INFO] [1495607652.611493847]: rviz version 1.11.15
[ INFO] [1495607652.611530033]: compiled against Qt version 4.8.6
[ INFO] [1495607652.611547018]: compiled against OGRE version 1.8.1 (Byatis)
rviz command line options:
-h [ --help ] Produce this help message
-s [ --splash-screen ] arg A custom splash-screen image to display
--help-file arg A custom html file to show as the help screen
-d [ --display-config ] arg A display config file (.rviz) to load

@liyanjie-beijing
Copy link

I met the same problem:
image

@qintonguav
Copy link
Member

@liyanjie-beijing
try deleting "-d" in vins_rviz.launch
or open RVIZ and add topics manually.
RVIZ is just for visualization.

@edward-wq
Copy link
Author

oh...sorry, I find deleting "-d" isn't a good way to solve this problem, although I can open the rviz without error by deleting "-d", the interface of rviz is not same with your original one which includes many necessary topics, what I opened is a basic rviz which only includes one topic -- vins_estimator/path...this means I didn't open the config file successfully.

I don't know the reason so far, but like what you said, RVIZ is just for visualisation, I added these topics manually, and now I focus on the algorithms ~

@MAGUADIDI
Copy link

MAGUADIDI commented Jan 14, 2018

2018-01-14 20-12-13
2018-01-14 20-15-30
@wangqi123412431 @liyanjie-beijing @qintonguav How can I sovle it?thanks.

@qintonguav
Copy link
Member

@MAGUADIDI

source ~/catkin_ws/devel/setup.bash

@MAGUADIDI
Copy link

MAGUADIDI commented Jan 14, 2018

Thank you.now I go to the "rosbag play src/benchmark_publisher/config/MH_05_difficult.bag"
Is the "MH_05_difficult.bag" in src/benchmark_publisher/config or download from EuRoC MAV Dataset?
@qintonguav

@sheroy666
Copy link

@qintonguav
I can have this . But when I rosbag play MH_05_difficult.bag ,there is no tracked image.Could u please tell me why?
575e6344-4079-11e7-950c-9fde8c53939e

@brandnew2017
Copy link

So I want to ask if you find good way to solve this problem???

thank you!!
1

@RyanMiao11
Copy link

RyanMiao11 commented Aug 30, 2019

@MAGUADIDI

source ~/catkin_ws/devel/setup.bash

I do this.but it still exists!how do you solve it?thanks

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

7 participants