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

Revision history [back]

Disable the subscriber and put self._widget.lineControlMode.setText("test message") at the bottom of the init.

If that is successful then try:

temp = String("test string")
self._widget.lineControlMode.setText(temp)

If that works re-enable the subscriber and put a rospy.loginfo(mode) in the callback and publish test messages to the topic, and see if the callback is getting triggered.

Disable Does the subscriber and put self._widget.lineControlMode.setText("test message") "init" test message successfully show up?

If so then try this at the bottom of the init.

If that is successful then try:init:

temp = String("test string")
self._widget.lineControlMode.setText(temp)

If that works re-enable the subscriber and put a rospy.loginfo(mode) in the callback and publish test messages to the topic, and see if the callback is getting triggered.