Roslaunch magni_viz view_nav.launch (problem launching on workstation)


#1

LOG:

ubuntu@ubiquityrobot:~$ roslaunch magni_viz view_nav.launch
… logging to /home/ubuntu/.ros/log/d5290c06-a52d-11e8-8f5a-43b06d479ff2/roslaunch-ubiquityrobot-3017.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubiquityrobot.local:37039/

SUMMARY

PARAMETERS

  • /rosdistro: kinetic
  • /rosversion: 1.12.13

NODES
/
rviz_ubiquityrobot_3017_1603626668 (rviz/rviz)

ROS_MASTER_URI=http://ubiquityrobot.local:11311

process[rviz_ubiquityrobot_3017_1603626668-1]: started with pid [3034]
QXcbConnection: Could not connect to display
[rviz_ubiquityrobot_3017_1603626668-1] process has died [pid 3034, exit code -6, cmd /opt/ros/kinetic/lib/rviz/rviz -d /opt/ros/kinetic/share/magni_viz/rviz/view_nav.rviz __name:=rviz_ubiquityrobot_3017_1603626668 __log:=/home/ubuntu/.ros/log/d5290c06-a52d-11e8-8f5a-43b06d479ff2/rviz_ubiquityrobot_3017_1603626668-1.log].
log file: /home/ubuntu/.ros/log/d5290c06-a52d-11e8-8f5a-43b06d479ff2/rviz_ubiquityrobot_3017_1603626668-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor…
… shutting down processing monitor complete
done


I believe that its someting wrong with the ip adress… my robot has the ip static as 10.10.20.35 and i´ve runned the command on the workstation:
export ROS_MASTER_URI=http://10.10.20.35:11311
export ROS_IP=http://10.10.20.215

and then the:
echo “export ROS_MASTER_URI=http://10.10.20.35:11311” >> ~/.bashrc echo “export ROS_IP=http://10.10.20.215”

but as you can see in the LOG seems the ip is not being established!

Hope you can help me!

Thanks


#2

Ok i´ve just restarted the robot and now i see the correct ip adress on the log file but still cant run the command “roslaunch magni_viz view_nav.launch” on the workstation!

LOG:

ubuntu@ubiquityrobot:~$ roslaunch magni_viz view_nav.launch
… logging to /home/ubuntu/.ros/log/dab85254-a53b-11e8-9da7-bbe28aca44d4/roslaunch-ubiquityrobot-1936.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubiquityrobot.local:33311/

SUMMARY

PARAMETERS

  • /rosdistro: kinetic
  • /rosversion: 1.12.13

NODES
/
rviz_ubiquityrobot_1936_882879876 (rviz/rviz)

ROS_MASTER_URI=http://10.10.20.35:11311

process[rviz_ubiquityrobot_1936_882879876-1]: started with pid [1956]
QXcbConnection: Could not connect to display
[rviz_ubiquityrobot_1936_882879876-1] process has died [pid 1956, exit code -6, cmd /opt/ros/kinetic/lib/rviz/rviz -d /opt/ros/kinetic/share/magni_viz/rviz/view_nav.rviz __name:=rviz_ubiquityrobot_1936_882879876 __log:=/home/ubuntu/.ros/log/dab85254-a53b-11e8-9da7-bbe28aca44d4/rviz_ubiquityrobot_1936_882879876-1.log].
log file: /home/ubuntu/.ros/log/dab85254-a53b-11e8-9da7-bbe28aca44d4/rviz_ubiquityrobot_1936_882879876-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor…
… shutting down processing monitor complete
done
ubuntu@ubiquityrobot:~$


#3

I just found the solution for this problem that might help someone in the future!

You need to disable the hardware acceleration on the VMBox setup! At least in my case has solved the problem!


#4

I am having the same error as you. I tried to launch the rviz or the fudicial follow programs without any success. In both cases I had the QXcbConnection: Could not connect to display error. I am controlling the robot via VMBOX and I have disabled the hardware acceleration with no luck. Can someone please help me.


#5

Hey @davidd Are you launching rviz on your workstation or while sshed into the Pi? Make sure that you are running it on your local workstation.