subscribe one variable from big topic msg
Hi,
I am using PID pkg that requires a std_msgs float type from topic but I am publishing this variable from a big topic that is the state of the plant (has several floats, integers and booleans)
When I try to subscribe to the variable, a new topic appears with the same namespace but without data.
For example:
The velocity is publishing inside movement_manager/velocity
which is a custom msg called: StatusPlant.msg with movement_manager/status
, movement_manager/config
, etc.
I want to link the PID float message subscribed from movement_manager
topic in order to do the PID controller but without luck.
The way I am doing it is with a parameter in a launchfile:
<node name="pid_controller" pkg="pid" type="controller" output="screen">
<param name="state_topic" value="movement_manager/velocity"/>
...
</node>
I tried with remap too but nothing changed.
Anybody knows the way to do it without publishing again the same velocity in a separate float message?