ROS gui node that can send data to another node
Hello,
So I have this node that has two sections. One section has some functions and the other section deals with a window gui. The gui has this variable called apple and the apple variable has different input from the user. And that input can affect the functions from the first section. All of this is one big cpp file.
My question is how do I go about separating the both sections into two different cpp file in a way so that user can launch the gui and whatever its input can affect the first section, which is a separate cpp file.
You can use
ROS Topics
to send messages from one side to another.More or less how
Gazebo
works. You have thegzserver
that calculates the physics and generate sensor data, and on the other side you havegzclient
that is the graphical interface.Gazebo
isgzclient
+gzserver
.