Robotics StackExchange | Archived questions

rosspawn compilation in fuerte fails

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

Asked by Miguel Riem de Oliveira on 2013-05-23 23:57:06 UTC

Comments

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

Asked by dornhege on 2013-05-24 05:52:51 UTC

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

Asked by Miguel Riem de Oliveira on 2013-05-25 23:40:35 UTC

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

Asked by Miguel Riem de Oliveira on 2013-05-25 23:41:22 UTC

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.

Asked by dornhege on 2013-05-29 02:11:49 UTC

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

Asked by Miguel Riem de Oliveira on 2013-05-29 02:57:26 UTC

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

Asked by dornhege on 2013-06-03 01:17:30 UTC

Answers