Unity-Technologies / ROS-TCP-Connector

Apache License 2.0
287 stars 90 forks source link

Need to send parameter values to a dynamic_reconfigure server #298

Open ftatp opened 1 year ago

ftatp commented 1 year ago

I'm trying to make a UI that can replace rqt_reconfigure, and I can subcribe the parameters from my target node, but not able to send them by just publishing to the same topic. It seems that according to rqt_graph, my target node only publishes the "node/parameter_updates" topic, but does not subscribe rqt_gui, which means that it has another way to get data from rqt_reconfigure.

I like to have a namespace just like what we can do to make a client part of the dynamic_reconfigure server in c++ or python.

I need something like this in c#:

client = dynamic_reconfigure.client.Client("dynamic_tutorials", timeout=30, config_callback=callback)

If this can not be added quickly, is it possible for me to add ros as a dll in Unity??

LaurieCheers-unity commented 1 year ago

Hi, I'm not familiar with dynamic_reconfigure, but judging by the docs it seems it's a way to send new settings to reconfigure a node at runtime. This isn't something we're likely to add to Ros-Tcp-Connector, but if it works via the standard ROS publish and subscribe mechanisms, it certainly should be possible to use Ros-Tcp-Connector to implement your own version of it. If rqt_graph says your node is not subscribing to the topic, you can explicitly subscribe using the RosConnection.Subscribe function. If you have more details about what you're trying to do, feel free to share them.

I have investigated the possibility of running a ROS node as a Unity plugin, but found it required an unreasonable number of other dlls as dependencies.