LUA deployment and ROS topics

Hi,

I am trying to connect my components to ROS topics via a Lua deployment. I
think that something has changed with 2.4->2.5 version of
rtt_ros_integration. Is the Lua cookbook outdated ? or does the new way of
streaming port to topics is not implemented yet in Lua ?

Here is the extract from the ROS wiki
http://www.ros.org/wiki/rtt_ros_integration

stream("YourComponentName.YourRTTPortName", ros.topic("/topic_name"))

Here is the extract from the Lua Cookbook
http://www.orocos.org/wiki/orocos/toolchain/luacookbook:

MiscellaneousConnecting RTT Ports to ROS topics

> cp=rtt.Variable("ConnPolicy")> cp.transport=3 -- 3 is ROS> cp.name_id="/l_cart_twist/command" -- topic name> depl:stream("CompX.portY", cp)

LUA deployment and ROS topics

Hi Willy,

On Fri, Feb 3, 2012 at 3:13 PM, Willy Lambert <lambert [dot] willy [..] ...>wrote:

>
>
> Hi,
>
> I am trying to connect my components to ROS topics via a Lua deployment. I
> think that something has changed with 2.4->2.5 version of
> rtt_ros_integration. Is the Lua cookbook outdated ? or does the new way of
> streaming port to topics is not implemented yet in Lua ?
>
>
> It is, you just need to import the rtt_rosnode package and do the
following:

dp=rtt.getTC():getPeer("deployer")
dp:import("rtt_rosnode")
dp:stream("Component.Port",rtt.provides("ros"):topic("topic_name"))

Ruben

>
> Here is the extract from the ROS wiki
> http://www.ros.org/wiki/rtt_ros_integration
>
>
> stream("YourComponentName.YourRTTPortName", ros.topic("/topic_name"))
>
>
>
> Here is the extract from the Lua Cookbook
> http://www.orocos.org/wiki/orocos/toolchain/luacookbook:
>
> Miscellaneous Connecting RTT Ports to ROS topics
>
> > cp=rtt.Variable("ConnPolicy")> cp.transport=3 -- 3 is ROS> cp.name_id="/l_cart_twist/command" -- topic name> depl:stream("CompX.portY", cp)
>
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>

LUA deployment and ROS topics

2012/2/3 Ruben Smits <ruben [..] ...>

> Hi Willy,
>
> On Fri, Feb 3, 2012 at 3:13 PM, Willy Lambert <lambert [dot] willy [..] ...>wrote:
>
>>
>>
>> Hi,
>>
>> I am trying to connect my components to ROS topics via a Lua deployment.
>> I think that something has changed with 2.4->2.5 version of
>> rtt_ros_integration. Is the Lua cookbook outdated ? or does the new way of
>> streaming port to topics is not implemented yet in Lua ?
>>
>>
>> It is, you just need to import the rtt_rosnode package and do the
> following:
>
> dp=rtt.getTC():getPeer("deployer")
> dp:import("rtt_rosnode")
> dp:stream("Component.Port",rtt.provides("ros"):topic("topic_name"))
>
> great thanks

> Ruben
>
>
>>
>> Here is the extract from the ROS wiki
>> http://www.ros.org/wiki/rtt_ros_integration
>>
>> stream("YourComponentName.YourRTTPortName", ros.topic("/topic_name"))
>>
>>
>>
>> Here is the extract from the Lua Cookbook
>> http://www.orocos.org/wiki/orocos/toolchain/luacookbook:
>>
>> Miscellaneous Connecting RTT Ports to ROS topics
>>
>> > cp=rtt.Variable("ConnPolicy")> cp.transport=3 -- 3 is ROS> cp.name_id="/l_cart_twist/command" -- topic name> depl:stream("CompX.portY", cp)
>>
>>
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>
>>
>
>
> --
> Ruben Smits, Phd
> Chief Technology Officer
> Intermodalics BVBA
> +32479511786
> www.intermodalics.eu
>
>