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"?>
<package>
  <name>gui</name>
  <version>0.1.0</version>
  <description>GUI of multirotor GCS</description>
  <maintainer email="clark.y.d.son@gmail.com">YoungdongSOn</maintainer>
  <license>BSD</license>
  <author email="clark.y.d.son@gmail.com">YoungdongSon</author>

  <buildtool_depend>catkin</buildtool_depend>
  <build_depend>roscpp</build_depend>
  <build_depend>rospy</build_depend>
  <build_depend>rqt_gui</build_depend>
  <build_depend>rqt_gui_cpp</build_depend>
  <run_depend>roscpp</run_depend>
  <run_depend>rospy</run_depend>
  <run_depend>rqt_gui</run_depend>
  <run_depend>rqt_gui_cpp</run_depend>

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

plugin.xml :

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

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