Why would librviz (in Python) only sometimes read the config file?
I am using librviz in a GUI using python (PyQt/PySide) I started with the librviz tutorial (docs.ros.org/hydro/api/rviz_python_tutorial/html/) and was able to use my own config files to show the panels and views that I want. The problem is that it is extremely sporadic.
I have tried:
- alternating config files
- downloading the tutorial and testing my config file with the tutorial script
- using the tutorial config file (raw.githubusercontent.com/ros-visualization/visualization_tutorials/hydro-devel/rviz_python_tutorial/config.myviz) with my script
- using the tutorial config file with the original tutorial code.
- restarting the computer
- Loading the config files into rviz (this works)
When it doesn't work, it looks something like this (tutorial script + tutorial config file): Broken image- i.imgur.com/j1rlQsf.png)
I note that it probably isn't reading the config file properly, because one of the first functions in the tutorial pulls from the file and changes the title, and it does not manage to even do that.
When it is working (my code + my config): Working image: (i.imgur.com/nN7vKkF.png)