h2r / java_rosbridge

A simple library using Jetty 9 to connect Java to a rosbridge server. Supports publishing and subscribing with different topic delegates
GNU Lesser General Public License v3.0
37 stars 20 forks source link

the topic name is not same in publish and subscribe? #10

Open qian0205 opened 3 years ago

qian0205 commented 3 years ago

hi, i am confused, The RosTest code in the tests package: the subecribe code: bridge.subscribe(SubscriptionRequestMsg.generate("/ros_to_java"), the topic name is /ros_to_java, but in the publisher, Publisher pub = new Publisher("/java_to_ros", "std_msgs/String", bridge); the topic name is /java_to_ros. is this case right?

Thanks