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

Rviz Problem #103

Open
aliozcan01 opened this issue Feb 9, 2021 · 1 comment
Open

Rviz Problem #103

aliozcan01 opened this issue Feb 9, 2021 · 1 comment

Comments

@aliozcan01
Copy link

Hello,

Thank you for providing this package as open source.
I can run this package standard launch files, but I can't run launch with rviz.
How can I use rviz with this package?
in log file: rviz process has died

Thanks, best regards.

Ubuntu 18.04
ROS Melodic

@Jamesnt
Copy link

Jamesnt commented Sep 13, 2021

I had a similar issue. It was due to the Xorg server not being defined.
I am running Ubuntu 20.04, ROS Noetic

rosrun robot_upstart install --job test .....

I solved it in my installation by adding the following environment variables into the generated test.launch file which robot_upstart placed at /lib/systemd/system/test.service

This may not be best practices.

[Unit]
Description="bringup test"
After=network.target
After=display_manager.service
Wants=display_manager.service

[Service]
Type=simple
Environment="XAUTHORITY=/run/user/1000/gdm/Xauthority"
Environment="DISPLAY=:0"
Environment="XDG_RUNTIME_DIR=/home///tmp"
Environment="HOME=/home/"
ExecStart=/usr/sbin/test-start

[Install]
WantedBy=multi-user.target

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

2 participants