Orocos toolchain indigo migrating command problems

I’m installing iTaSC on an Odroid XU3 small computer using Ubuntu 14.04 and ROS Indigo for ARM.
The Orocos toolchain is set up properly and everything has compiled.
However, I am struggling with adapting our deployer start up scripts to get everything running as the Orocos structure has changed from Groovy to Indigo.

if filename then
-- if package
local ret,_,pack,file = string.find(filename,"(.+)#(.+)")
if ret~=nil then
local packpath, res
res, packpath = pcall(rttros.find_rospack, pack)
if not res then
print("Error: No package with the name '"..tostring(pack).."' found. Did you set the ROS_PACKAGE_PATH correctly?")
os.exit(1)
end
if(string.find(file,"/(.*)")) then
filename = packpath..file
else
filename = packpath.."/"..file
end
end
if not utils.file_exists(filename) then
print("Error: non-existing file "..filename)
os.exit(1)
end
else
print("Syntax error: Given file name '"..filespec.."' does not follow filespec syntax: file://ROSpackage#/path/to/file.extention")
os.exit(1)
end
return filename
end

At the beginning of the lua file we have this:
local rttlib=require("rttlib")
local rttros = require("rttros")

I don't know why it can't find a rospackage within a lua script but no problem from within the .ops script.
Any thoughts? Do I need to import a different library?

The "official" way to find the path of ROS packages, independent of the
scripting language, would be via a global operation provided by the
rtt_rospack package. After having imported the package your Lua script
should work if you replace the pcall line by

> Hi,
>
> I’m installing iTaSC on an Odroid XU3 small computer using Ubuntu 14.04
> and ROS Indigo for ARM.
> The Orocos toolchain is set up properly and everything has compiled.
> However, I am struggling with adapting our deployer start up scripts to
> get everything running as the Orocos structure has changed from Groovy to
> Indigo.
>
> I have an executable: run_test_indigo.sh
>
> rosrun rtt_ros deployer -lwarning -s itasc_deploy_taskbrowser_indigo.ops

I’m installing iTaSC on an Odroid XU3 small computer using Ubuntu 14.04 and ROS Indigo for ARM.
The Orocos toolchain is set up properly and everything has compiled.
However, I am struggling with adapting our deployer start up scripts to get everything running as the Orocos structure has changed from Groovy to Indigo.

if filename then
-- if package
local ret,_,pack,file = string.find(filename,"(.+)#(.+)")
if ret~=nil then
local packpath, res
res, packpath = pcall(rttros.find_rospack, pack)
if not res then
print("Error: No package with the name '"..tostring(pack).."' found. Did you set the ROS_PACKAGE_PATH correctly?")
os.exit(1)
end
if(string.find(file,"/(.*)")) then
filename = packpath..file
else
filename = packpath.."/"..file
end
end
if not utils.file_exists(filename) then
print("Error: non-existing file "..filename)
os.exit(1)
end
else
print("Syntax error: Given file name '"..filespec.."' does not follow filespec syntax: file://ROSpackage#/path/to/file.extention")
os.exit(1)
end
return filename
end

At the beginning of the lua file we have this:
local rttlib=require("rttlib")
local rttros = require("rttros")

I don't know why it can't find a rospackage within a lua script but no problem from within the .ops script.
Any thoughts? Do I need to import a different library?