Closed martinwimpff closed 5 years ago
Found the problem myself:
In the class RosToMqttBridge:
rospy.Subscriber(topic_from, msg_type, self._callback_ros)
should change to:
rospy.Subscriber(self._topic_from, msg_type, self._callback_ros)
In the class MqttToRosBridge:
self._mqtt_client.subscribe(topic_from) self._mqtt_client.message_callback_add(topic_from, self._callback_mqtt)
should change to:
self._mqtt_client.subscribe(self._topic_from) self._mqtt_client.message_callback_add(self._topic_from, self._callback_mqtt)
I want to make a second private_path for the ROS topic path equivalent to the normal one. I made the following changes:
In app.py :
In bridge.py:
In mqtt_client.py:
Unfortunately it doesn't work if I write something like that in my demo_params.yaml file:
topic_from: v/something
whereas this works:topic_to: v/something
Any ideas what's missing?