Robotics StackExchange | Archived questions

unable to launch [] if it is a script, you may be missing a '#!' declaration

Hi all,

i am trying to add a package[myPkg] with one cpp ros node with one service in the capability server. but it is showing "unable to launch [] if it is a script, you may be missing a '#!' declaration " but when i ran the command "rosservice call /capabilityserver/getinterfaces", it is giving my package name as below interfaces: ['myPkg']

here is the problem : but when i ran 'rosservice call /capabilityserver/startcapability myInterface myprovider' it is giving me error as i mentioned eariler.

Any help would be appriciated,

Thanks,

Asked by vinnu428 on 2017-07-01 01:06:22 UTC

Comments

Can you post your code? If you are writing in c++ you may not have initialized your node appropriately

Asked by Oded on 2017-07-05 02:11:42 UTC

Answers