rosspawn compilation in fuerte fails [closed]

asked 2013-05-23 23:57:06 -0500

Miguel Riem de Oliveira gravatar image

updated 2013-05-23 23:57:39 -0500

Hi

I am having a problem compiling package rosspawn in fuerte.

http://www.ros.org/wiki/rosspawn

There seems to be some incompatibility with rospack in fuerte

I download using

git http://github.com/timn/rosspawn.git

And then try to compile, which results in the following error

/home/mike/workingcopy/rosspawn/src/rosspawn.cpp: In constructor ‘RosSpawnMain::RosSpawnMain(ros::NodeHandle&)’: /home/mike/workingcopy/rosspawn/src/rosspawn.cpp:78:16: error: ‘rospack::VecPkg’ has not been declared /home/mike/workingcopy/rosspawn/src/rosspawn.cpp:78:33: error: expected ‘;’ before ‘i’ /home/mike/workingcopy/rosspawn/src/rosspawn.cpp:79:7: error: ‘i’ was not declared in this scope /home/mike/workingcopy/rosspawn/src/rosspawn.cpp:79:21: error: ‘rospack::Package’ has not been declared /home/mike/workingcopy/rosspawn/src/rosspawn.cpp:92:21: error: ‘rospack::VecPkg’ has not been declared /home/mike/workingcopy/rosspawn/src/rosspawn.cpp:92:38: error: expected ‘;’ before ‘i’ /home/mike/workingcopy/rosspawn/src/rosspawn.cpp:93:5: error: ‘i’ was not declared in this scope /home/mike/workingcopy/rosspawn/src/rosspawn.cpp:93:19: error: ‘rospack::Package’ has not been declared

Seems that its looking for Package and VecPkg in rospack and they do not exist.

Can anybody give me some help?

regards

Miguel

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Miguel Riem de Oliveira
close date 2013-06-27 00:24:51

Comments

It seems to me that the API for rospack has been substantially changed, so that this wouldn't be a quick fix.

dornhege gravatar image dornhege  ( 2013-05-24 05:52:51 -0500 )edit

Hi Dornhege. Thanks for the repply. So what you are saying is that rosspawn would probably not exist in fuerte/groovy?

Miguel Riem de Oliveira gravatar image Miguel Riem de Oliveira  ( 2013-05-25 23:40:35 -0500 )edit

Can you think of any other package that does the same? What I want is to be able to launch a ros node (with certain parameters) from the code of another node. Apart from rosspawn, I can only think of a system call, but that normally is not a very good idea. regards

Miguel Riem de Oliveira gravatar image Miguel Riem de Oliveira  ( 2013-05-25 23:41:22 -0500 )edit
1

system call is what we are doing right now and what I looked at rosspawn for, too. If someone ports that to fuerte, I'm sure Tim will welcome a pull request.

dornhege gravatar image dornhege  ( 2013-05-29 02:11:49 -0500 )edit

Hi. Thanks for the answer. What is a pull request? How do I do it?

Miguel Riem de Oliveira gravatar image Miguel Riem de Oliveira  ( 2013-05-29 02:57:26 -0500 )edit

It's a way to provide a patch on github, once someone has fixed the code.

dornhege gravatar image dornhege  ( 2013-06-03 01:17:30 -0500 )edit