Giter VIP home page Giter VIP logo

Comments (10)

rhaschke avatar rhaschke commented on August 15, 2024 1

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.

mescarra avatar mescarra commented on August 15, 2024

Any updates on this?

from rqt_rviz.

awesomebytes avatar awesomebytes commented on August 15, 2024

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.

awesomebytes avatar awesomebytes commented on August 15, 2024

(Note that there is still a big issue that may make the plugin crash randomly #6)

from rqt_rviz.

Paul-Ajay avatar Paul-Ajay commented on August 15, 2024

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.

awesomebytes avatar awesomebytes commented on August 15, 2024

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.

peci1 avatar peci1 commented on August 15, 2024

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.

MaximilienNaveau avatar MaximilienNaveau commented on August 15, 2024

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.

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.

rhaschke avatar rhaschke commented on August 15, 2024

I think this issue was resolved in #8 / #9.

from rqt_rviz.

awesomebytes avatar awesomebytes commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.