ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Shall I use ROS plugins to make ROS communicate with my Library ?

asked 2017-04-01 06:14:56 -0600

saranshvora gravatar image

Hello all,

I am new to ROS and want to use it to communicate between the nodes of my own library. I want to know whether I shall create plugins to make it communicate with the parts of my library ?
for example https://nengoros.wordpress.com/ is a neural networks simulator and it uses ROS to make it communicate between it's modules(nodes). I am working on something similar but not sure whether I should use ROS plugins. Any information will be helpful.

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-04-04 08:49:03 -0600

mohsen1989m gravatar image

If I understood well what you need to do is having some c++ class that you need to use in your node. If this is the case simply use add_library in your CMakeList.txt to define your library with a name. Then, make sure you like your library to your node using target link libraries command.

If you need to share a C++ library in your environment so other packages can use it as well, u need to export your library.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-04-01 06:14:56 -0600

Seen: 125 times

Last updated: Apr 04 '17