Hello,
I am trying to connect an Orocos Port to a ROS topic according to
section 10.1 in the LuaCookbook.
I have successfully done so by defining the ConnPolicy manually.
However, when I try to use Ruben's one-liner (specifically the
rtt.provides("ros") ), RTTLua complains that "Service.provides: no
subservice GlobalService of service ros".
What do I need to do in order to make the ROS service available in RTTLua?
Soo-Hyun Yoo
Dynamic Robotics Laboratory
Oregon State University
Error when trying to connect RTT port to ROS topic with RTTLua
On Thu, Jul 12, 2012 at 11:50 PM, Soo-Hyun Yoo <yoos117 [..] ...> wrote:
> Hello,
>
> I am trying to connect an Orocos Port to a ROS topic according to
> section 10.1 in the LuaCookbook.
>
> I have successfully done so by defining the ConnPolicy manually.
>
> However, when I try to use Ruben's one-liner (specifically the
> rtt.provides("ros") ), RTTLua complains that "Service.provides: no
> subservice GlobalService of service ros".
This is a typo in the error: it should say "no subservice ros of
service GlobalService"...
>
> What do I need to do in order to make the ROS service available in RTTLua?
1. start roscore
2. start rttlua-gnulinux :
3. = rtt.getTC():getPeer("deployer"):import("rtt_rosnode")
4. ros = rtt.provides("ros")
5. cp = ros:topic("/foo/bar")
6. = cp
Peter
Error when trying to connect RTT port to ROS topic with RTTLua
On Fri, Jul 13, 2012 at 5:30 AM, Peter Soetens <peter [..] ...> wrote:
> On Thu, Jul 12, 2012 at 11:50 PM, Soo-Hyun Yoo <yoos117 [..] ...> wrote:
>> Hello,
>>
>> I am trying to connect an Orocos Port to a ROS topic according to
>> section 10.1 in the LuaCookbook.
>>
>> I have successfully done so by defining the ConnPolicy manually.
>>
>> However, when I try to use Ruben's one-liner (specifically the
>> rtt.provides("ros") ), RTTLua complains that "Service.provides: no
>> subservice GlobalService of service ros".
>
> This is a typo in the error: it should say "no subservice ros of
> service GlobalService"...
>
>>
>> What do I need to do in order to make the ROS service available in RTTLua?
>
> 1. start roscore
> 2. start rttlua-gnulinux :
> 3. = rtt.getTC():getPeer("deployer"):import("rtt_rosnode")
> 4. ros = rtt.provides("ros")
> 5. cp = ros:topic("/foo/bar")
> 6. = cp
This works great. Thanks!
Soo-Hyun
>
> Peter