ROS gui node that can send data to another node

asked 2017-10-09 12:20:37 -0500

Vetrov gravatar image

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.

edit retag flag offensive close merge delete

Comments

You can use ROS Topics to send messages from one side to another.

More or less how Gazebo works. You have the gzserver that calculates the physics and generate sensor data, and on the other side you have gzclient that is the graphical interface.

Gazebo is gzclient + gzserver.

Ruben Alves gravatar image Ruben Alves  ( 2017-10-16 06:37:58 -0500 )edit