ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Link against a library via a remote connection(ROS net)

asked 2014-12-23 23:20:02 -0500

A.M Dynamics gravatar image

I have already learn how to link against a package with your help. Now, I need to link against a package via ROS Network. To be clear, I have to PCs, A and B. In A (as a master) I create a catkin package including my main node and in B (as a host)I have a repository/Lib. I need to link against the repository located in B from catkin package in A via ROS network. Now I wonder if it is possible or not? if it is, what kind of changes must be applied to CMakeLists.txt and package.xml? Is adding the repository to find_package and catkin_package still applicable?

I appreciate it if you help me out.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-12-23 23:23:41 -0500

ahendrix gravatar image

This cannot be done.

Instead, you should put the source code for your library package in source control, and have it checked out on both machines. That way, any packages which use it can link against the copy which is on the local machine.

edit flag offensive delete link more


Thanks. But I don't understand your first sentence. Would you please expand on it?

A.M Dynamics gravatar image A.M Dynamics  ( 2014-12-24 11:03:21 -0500 )edit

answered 2014-12-24 11:10:39 -0500

A.M Dynamics gravatar image

I put the target library in Master (computer A) and linked against it from my catkin package in also A. In B, I didn't do any special thing. I only connected it to Master (A) via ROS net. But when I run rosrun command to run the main node of catkin package in computer A I receive this error:

Info: Initializing EtherCAT on eth0 with communication thread Warning: No EtherCAT slaves found! Info: Done.

edit flag offensive delete link more



Your error about not finding ethercat slaves isn't related to linking; you should ask a new question about it.

ahendrix gravatar image ahendrix  ( 2014-12-25 19:11:20 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-12-23 23:20:02 -0500

Seen: 134 times

Last updated: Dec 24 '14