Segmentation fault while following rqt tutorials

asked 2016-11-08 02:07:38 -0500

Youngdong Clark gravatar image

Hello guys.

I will appreciate if you answer my questions I am struggling with now.

I am following the rqt tutorials with my own ui file I made previously.

I wrote the plugin.xml file and the script file as following.

package.xml :

    <?xml version="1.0"?>
  <description>GUI of multirotor GCS</description>
  <maintainer email="">YoungdongSOn</maintainer>
  <author email="">YoungdongSon</author>


    <rqt_gui plugin="${prefix}/plugin.xml"/>

plugin.xml :

<library path="lib/libgui">
<class name="GCS_SYD/gui" type="GCS_SYD::gui" base_class_type="rqt_gui_cpp::Plugin">
A GUI plugin to view multirotor topics and send commands
<icon type="theme">folder</icon>
<statustip>1.Plugins related to visualization.</statustip>
<label>Image View</label>
<icon type="theme">image-x-generic</icon>
<statustip>2.A GUI plugin for viewing sensor_msgs/Image topics.</statustip>

script file GCS_SYD :

#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='GCS_SYD/gui'))

when I change the part 'sys.exit(main.main(sys.argv, standalone='GCS_SYD/gui'))' into 'sys.exit(main.main(sys.argv, standalone='rqt_image_view/ImageView'))', it does not make any errors.

When I use the part without change, however, it makes a segmentation fault when I type 'rosrun gui GCS_SYD'.

Please let me know the answer or any hint.

Thank you very much.

edit retag flag offensive close merge delete