OPS file creation

Hello!

I have an easy question about ops files. At the "Component Builder Manual" i didn't find nothing about how to create an ops(maybe becouse of my low english level).

As i think this file is just a usual text file, where .txt changed to .ops, am i right?

But when i'm running the deployer and typing:

deployer-gnulinux -s helloworld.ops -linfo

I getting a mistake, that ".ops file didn't exist"

Thank you for watching.

OPS file creation

On Wed, Nov 30, 2011 at 6:43 AM, <aivanov [dot] mcu [..] ...> wrote:
> Your advise helped me. Only one worried me: compilation couldn't run with
> comments! Before i had deleted comments i was recieving errors.

Do you mean that the // commenting is not working in your scripts ?

Peter

Comments

Yes correct. I thought that text are not compiling, if they are standing after // like in c or python.

OPS file creation

Hi,

On Tue, Nov 29, 2011 at 09:04:46AM +0100, aivanov [dot] mcu [..] ... wrote:

> I have an easy question about ops files. At the "Component Builder Manual" i
> didn't find nothing about how to create an ops(maybe becouse of my low
> english level).
>
> As i think this file is just a usual text file, where .txt changed to .ops,
> am i right?

You can do that. Or just create a file with an ops extension directly.

> But when i'm running the deployer and typing:
>
> deployer-gnulinux -s helloworld.ops -linfo
>
> I getting a mistake, that ".ops file didn't exist"

Your are providing too little information for us to help you. Please
provide exactly (copy/pasted ideally!), the commands you typed in and
the results/errors you got back.

Best regards
Markus

enkulator's picture

OPS file creation

You type the deployer-gnulinux in the same folder where your *.ops file is
saved?

But if you want, you can use the script from any terminal if you put the
absolute path, ex:

> deployer-gnulinux -s <your_path_folder_script>/your_script.ops -linfo

toni

OPS file creation

Your advise helped me. Only one worried me: compilation couldn't run with comments! Before i had deleted comments i was recieving errors.

Re:

enkulator wrote:
You type the deployer-gnulinux in the same folder where your *.ops file is saved?

But if you want, you can use the script from any terminal if you put the absolute path, ex:

> deployer-gnulinux -s <your_path_folder_script>/your_script.ops -linfo

toni

Maybe it is the answer... i'm a beginner at Ubuntu too, so i haven't accustomed to terminal. At the evening i would check your variant. Thank you!

OPS file creation

I'm learning with Orocos Component Builder Manual (chapter 2), i had saved the file with extension .ops wich includes following:

require("print") // necessary for 'print.ln'

 import("HelloWorld")    // 'HelloWorld' is a directory name to import      

 print.ln("Script imported HelloWorld package:")
 displayComponentTypes() // Function of the DeploymentComponent
 
 loadComponent("Hello", "HelloWorld") // Creates a new component of type 'HelloWorld'
 print.ln("Script created Hello Component with period: " + Hello.getPeriod() )
After what i typed in terminal following:

deployer-gnulinux -s helloworld.ops -linfo

deployer had started but with error:

0.306 [ ERROR ][ScriptingService::runScript] Script helloworld.ops does not exist.

What i had made wrong?

Thank you for rapid response