ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

lui's profile - activity

2017-11-09 07:19:56 -0500 received badge  Student (source)
2014-04-19 22:35:33 -0500 received badge  Famous Question (source)
2013-11-19 21:27:55 -0500 received badge  Popular Question (source)
2013-11-13 01:52:34 -0500 received badge  Notable Question (source)
2013-10-31 15:56:33 -0500 asked a question openGL in rqt

Hi guys, Im trying to create a plugin which makes use of 3D graphics rendering. When i run the plugin individually, it works perfectly however when I rosrun it in the rqt_gui, all I see is a black screen with a much smaller version of my object. Thanks in advance.

2013-10-28 21:33:48 -0500 received badge  Popular Question (source)
2013-10-09 22:44:36 -0500 asked a question RQT subscriber plugin

Hi everyone, I am working on a rqt plugin which subscribes data from my quadcopter and display the values on a UI. However get the following error: TypeError: pyqtSignal must be bound to a QObject, not 'FlightPanel' when I close the plugin.

class FlightPanel(Plugin):

updateDisplay = QtCore.pyqtSignal( )
def __init__(self, context):
    super(FlightPanel, self).__init__(context)
    # Give QObjects reasonable names
    self.setObjectName('FlightPanel')


    def callback(data):
        self.state = data.state
        self.rollAngle = data.rollAngle
        self.pitchAngle = data.pitchAngle
        self.ultrasonicAltitude = data.ultrasonicAltitude
        self.depthAltitude = data.depthAltitude
        self.velocityX = data.velocityX
        self.velocityY = data.velocityY
        self.autoThrottle = data.autoThrottle
        self.autoRoll = data.autoRoll
        self.autoPitch = data.autoPitch
        self.autoYaw = data.autoYaw
        self.updateDisplay.emit( )
        #print self.state

    rospy.Subscriber("flightFeedback", flightFeedback, callback)

    self.updateDisplay.connect( self.update_display )

@QtCore.pyqtSlot()
def update_display( self ):
    self._widget.line_edit_roll_angle.setText(str(self.rollAngle))
    self._widget.line_edit_pitch_angle.setText(str(self.pitchAngle))
    self._widget.line_edit_ultrasonic_altitude.setText(str(round (self.ultrasonicAltitude, 2)))
    self._widget.line_edit_depth_altitude.setText(str(self.depthAltitude))
    self._widget.line_edit_velocity_x.setText(str(round (self.velocityX, 2)))
    self._widget.line_edit_velocity_y.setText(str(round (self.velocityY, 2)))
    self._widget.line_edit_auto_throttle.setText(str(self.autoThrottle))
    self._widget.line_edit_auto_roll.setText(str(self.autoRoll))
    self._widget.line_edit_auto_pitch.setText(str(self.autoPitch))
    self._widget.line_edit_auto_yaw.setText(str(self.autoYaw))