Comments (10)
Closing this issue, because the rviz config file is stored in the perspective file since 3 years (#8 / #9).
@ajaypaul2008: Saving the relative file name typically doesn't make sense in my opinion: As soon as you run from another folder, the file isn't found anymore.
from rqt_rviz.
Any updates on this?
from rqt_rviz.
hey @mescarra, I just opened this PR to try to get some work started on that: #8
If you think you could help, it would be great.
from rqt_rviz.
(Note that there is still a big issue that may make the plugin crash randomly #6)
from rqt_rviz.
The plugin works nicely and I am able to run rqt_rviz with the saved config in perspective file.
But the issue is the rviz.config is referenced in the perspective file using the absolute path of the file.
"plugin": { "keys": { "rviz_config_file": { "type": "repr", "repr": "u'/home/<absolute_path>/config.rviz'"
Because of this I am not able to reuse the perspective on another PC. I need to locate the rviz,config again using the plugin and export the new perspective file to load it again.
Any workaround to avoid this absolute path referencing in the perspective file?
@awesomebytes @dirk-thomas
from rqt_rviz.
I used an ugly script that generated the config file with the local path (using rospack to find the path of the package and doing a replace from my template file). It tried to substitute it with the local one (in case of a source checkout) and if that failed it generated in /tmp with a warning that you may want to move it somewhere more permanent. Ugly hack and you needed to run this "setup" script before using the package... But for my use case it was enough.
I then used a launchfile that ran "first" this script and then the actual rqt with the config file from /tmp. As you may know, launchfiles launch everything in parallel so I needed an extra hack to make sure the setup script was ran before the rqt command...
Let me know if you come up with some more clever way of doing it.
from rqt_rviz.
Any workaround to avoid this absolute path referencing in the perspective file?
@awesomebytes @dirk-thomas
If you manually edit the perspective file, you can leave a relative path there. It the resolves to the node's current directory.
from rqt_rviz.
Any workaround to avoid this absolute path referencing in the perspective file?
@awesomebytes @dirk-thomasIf you manually edit the perspective file, you can leave a relative path there. It the resolves to the node's current directory.
edit question:
It resolves to the node's current directory which is basically always:
/opt/ros/[ros_distro]/lib/rqt_gui/rqt_gui
I do not see how that helps.
Suggestion:
Can't we use the same paradigm as in the urdf files? And have paths relative to a ros package?
That would be so much more convenient.
"plugin__rqt_rviz__RViz__1": {
"plugin": {
"keys": {
"rviz_config_file": {
"type": "repr",
"repr": "u'package://my_ros_package/rviz/my_riviz_file.rviz'"
},
"hide_menu": {
"type": "repr",
"repr": "False"
}
},
"groups": {}
}
}
},
from rqt_rviz.
I think this issue was resolved in #8 / #9.
from rqt_rviz.
Just a little update:
I made rqt_embed_window which allows to embed 'any window' into rqt. With it you can embed Rviz as it is without threading issues as reported in #6
I've been running it for 3 months and had no crashes yet.
from rqt_rviz.
Related Issues (10)
- unable to link against pthreads on ubuntu zesty HOT 3
- move back to single master branch HOT 2
- RViz within rqt environment crashing HOT 15
- Release into Melodic HOT 3
- No robot state or robot model loaded HOT 1
- Release rqt_rviz into Noetic? HOT 1
- command line option HOT 2
- melodic-devel as default branch
- Porting to ROS2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rqt_rviz.