Hello List,
Is it possible to launch a deployer-gnulinux with multiple .ops files where all ops files make use of variables set in the first .ops file? Here is my launch file:
<launch>
<include file="$(find rtt_ros)/launch/deployer.launch">
<arg name="DEPLOYER_ARGS" value="gnulinux
-s $(find amigo_hardware)/firstscript.ops
-s $(find amigo_hardware)/secondscript.ops
" />
<arg name="LOG_LEVEL" value="Warning" />
<arg name="DEBUG" value="false" />
<include>
<launch>
In firstscript.ops I declare the variable Ts:
var double TS = 0.001
But I cannot acces TS in secondscript.ops. Does anyone know how to acces TS in the second script?
Regards
Max Baeten
Global variables
Hi Max,
You can use ros parameters as a workaround...
You define the ROS parameter in your launch script, add an OROCOS property
to your deployer of the same name and sync both using rtt_rosparam.
Regards,
Bert
On Wed, Sep 17, 2014 at 3:12 PM, Baeten, M.J.J. <m [dot] j [dot] j [dot] baeten [..] ...
> wrote:
> Hello List,
>
> Is it possible to launch a deployer-gnulinux with multiple .ops files
> where all ops files make use of variables set in the first .ops file? Here
> is my launch file:
>
> <launch>
> <include file="$(find rtt_ros)/launch/deployer.launch">
> <arg name="DEPLOYER_ARGS" value="gnulinux
> -s $(find amigo_hardware)/firstscript.ops
> -s $(find amigo_hardware)/secondscript.ops
> "/>
> <arg name="LOG_LEVEL" value="Warning" />
> <arg name="DEBUG" value="false" />
> <include>
> <launch>
>
> In firstscript.ops I declare the variable Ts:
>
> var double TS = 0.001
>
> But I cannot acces TS in secondscript.ops. Does anyone know how to acces
> TS in the second script?
>
> Regards
> Max Baeten
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>