Hello, I am currently working on Unit2 and am facing this error when I try to save the config.
I even tried saving to a new file called default1.rviz and it still says it couldn’t open that file.
1 Like
Hi @sdanie20 ,
Welcome to this Community!
You cannot save on the /opt/ros/noetic/share/rviz/
as you will not have read-write permissions to that folder. [That said, do not try to give read-write permissions to this directory!]
So you must save your rviz config file in your own workspace path or in your ROS package directory.
I hope this solves your problem.
Regards,
Girish
1 Like
Thank you. This worked for me. But I have to go and open that specific config file every time. Is there a way to change the default location and .rviz file that loads?
Hi @sdanie20 ,
Yes, you can do it in two ways.
- Command line on terminal:
rosrun rviz rviz -d /path/to/config.rviz
- Using launch file:
<node pkg="rviz" type="rviz" name="rviz" args="-d $(find <your_pkg_name>)/path/to/config.rviz"/>
Add the above line to your launch file.
Regards,
Girish
1 Like
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.