How to get a HelloRobot example to work in orocos/ros?

Dear list,

I am trying to get the HelloRobot example from
http://wiki.ros.org/rtt_ros_integration_example
to work.
It builds, but I can't get it to work. The complexity of orocos/ros/c++ still confuses me:(
Hopefully someone can give me some pointers so I can get a working example.
Here the details.

Context:
ros-hydro
- installed via ubuntu (12.04, 64 bit) packages.
orocos toolchain-2.7 using catkin
- via git clone --recursive http://git.gitorious.org/orocos-toolchain/orocos_toolchain.git -b toolchain-2.7
rtt_ros_integration using catkin
- via git clone https://github.com/jhu-lcsr-forks/rtt_ros_integration.git
(removed directory tests/rtt_roscomm_tests because of errors in building)
This all seems to build install properly. I can use ros-examples, and orocos-examples separately.

Now the example.
I only use the rtt_ros_integration_example (directory) from
http://wiki.ros.org/rtt_ros_integration_example
this because the rtt_actionlib_examples gives errors.
Again using catkin, it build-installs ok

I try to start it with
rosrun ocl deployer-gnulinux -s example.ops
(there is no deploy.ops file as mentioned on the web page)
this gives:
[rosrun] Couldn't find executable named deployer-gnulinux below /home/p100213/ROSWS/install_isolated/share/ocl

(Why does is look for the deployer there?)

If I try
roslaunch rtt_ros_integration_example example.launch
we get:

... logging to /home/p100213/.ros/log/3b86eede-4ab4-11e3-b4d8-002481150e15/roslaunch-fwn-nb4-16-202-15815.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

while processing /home/p100213/ROSWS/install_isolated/share/rtt_ros/launch/deployer.launch:
Invalid roslaunch XML syntax: [Errno 2] No such file or directory: u'/home/p100213/ROSWS/install_isolated/share/rtt_ros/launch/deployer.launch'

(There is no such file there indeed.)

What am I doing wrong?

Next to that I cannot find where the rtt_ros integration code is really used in the code.
Looking in src/HelloRobot.cpp, I don't see this.
I see the include, and I see the dependency mentioned in package.xml, but no real use of the code.
So how is the connection really made to ros.
Is that done via "rosrun ocl ...."?
But how contretely?

Thanks in advance.
Sietse

Ruben Smits's picture

How to get a HelloRobot example to work in orocos/ros?

On Mon, Nov 11, 2013 at 1:12 PM, Sietse Achterop <s [dot] achterop [..] ...> wrote:
> Dear list,
>
> I am trying to get the HelloRobot example from
> http://wiki.ros.org/rtt_ros_integration_example
> to work.

As you can see from this page the example or at least the page is
highly outdated as it still refers to Electric, which is marked as EOL
.

> It builds, but I can't get it to work. The complexity of orocos/ros/c++ still confuses me:(
> Hopefully someone can give me some pointers so I can get a working example.
> Here the details.
>
> Context:
> ros-hydro
> - installed via ubuntu (12.04, 64 bit) packages.
> orocos toolchain-2.7 using catkin
> - via git clone --recursive http://git.gitorious.org/orocos-toolchain/orocos_toolchain.git -b toolchain-2.7
> rtt_ros_integration using catkin
> - via git clone https://github.com/jhu-lcsr-forks/rtt_ros_integration.git
> (removed directory tests/rtt_roscomm_tests because of errors in building)
> This all seems to build install properly. I can use ros-examples, and orocos-examples separately.
>
> Now the example.
> I only use the rtt_ros_integration_example (directory) from
> http://wiki.ros.org/rtt_ros_integration_example
> this because the rtt_actionlib_examples gives errors.
> Again using catkin, it build-installs ok
>
> I try to start it with
> rosrun ocl deployer-gnulinux -s example.ops
> (there is no deploy.ops file as mentioned on the web page)
> this gives:
> [rosrun] Couldn't find executable named deployer-gnulinux below /home/p100213/ROSWS/install_isolated/share/ocl
>
> (Why does is look for the deployer there?)

Did you source your install or devel space of the orocos_toolchain?

can you try to execute the following after sourcing the install-space
of the orocos_toolchain:

which deployer

Also the new rtt_ros_integration that you are using is still under
development. I do not know what it's stability status is.

> If I try
> roslaunch rtt_ros_integration_example example.launch
> we get:
>
> ... logging to /home/p100213/.ros/log/3b86eede-4ab4-11e3-b4d8-002481150e15/roslaunch-fwn-nb4-16-202-15815.log
> Checking log directory for disk usage. This may take awhile.
> Press Ctrl-C to interrupt
> Done checking log file disk usage. Usage is <1GB.
>
> while processing /home/p100213/ROSWS/install_isolated/share/rtt_ros/launch/deployer.launch:
> Invalid roslaunch XML syntax: [Errno 2] No such file or directory: u'/home/p100213/ROSWS/install_isolated/share/rtt_ros/launch/deployer.launch'
>
> (There is no such file there indeed.)
>
> What am I doing wrong?

Again: did your source all relevant install spaces?

> Next to that I cannot find where the rtt_ros integration code is really used in the code.
> Looking in src/HelloRobot.cpp, I don't see this.
> I see the include, and I see the dependency mentioned in package.xml, but no real use of the code.
> So how is the connection really made to ros.
> Is that done via "rosrun ocl ...."?
> But how contretely?
>

It uses ROS messages as data-structs on its ports, allowing it to
easily create data streams from the ports to ROS topics. The stream
creation is done in the example.ops file.

Ruben.

> Thanks in advance.
> Sietse
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

How to get a HelloRobot example to work in orocos/ros?

On 12-11-13 09:11, Ruben Smits wrote:

Hello Ruben,

>> this gives:
>> [rosrun] Couldn't find executable named deployer-gnulinux below /home/p100213/ROSWS/install_isolated/share/ocl
>>
>> (Why does is look for the deployer there?)
>
> Did you source your install or devel space of the orocos_toolchain?

The install space:
source /opt/ros/hydro/setup.bash
source /home/p100213/ROSWS/install_isolated/setup.bash
(using toolchain-2.7 from git and catkin_make_isolated --install)

> can you try to execute the following after sourcing the install-space
> of the orocos_toolchain:
>
> which deployer

/home/p100213/ROSWS/install_isolated/bin/deployer
So this explains that, for toolchain-2.7, the above error is given.
As mentioned in another mail, a symbolic link in share/ocl is an ad hoc solution.

> Also the new rtt_ros_integration that you are using is still under
> development. I do not know what it's stability status is.
> Again: did your source all relevant install spaces?
>
I think i did.

> It uses ROS messages as data-structs on its ports, allowing it to
> easily create data streams from the ports to ROS topics. The stream
> creation is done in the example.ops file.

Aha, i missed the creation done in the example.ops file. Thanks.

Finally, the actual question is, is there a combination of ros, orocos and a complete
example that all work together. That would help a lot.

I think it would be something like:

1 ros-hydro from the ubuntu packages
2 the toolchain (2.6 I assume) using
git clone --recursive http://git.gitorious.org/orocos-toolchain/orocos_toolchain.git
catkin_make_isolated --install
3 rtt_ros_integration from ??
- the website only talks about a version for fuerte.
There is additional information about using ROS messages.
Is that still relevant for hydro?
- the new version I used is instable?
- ??
4 the example from
http://wiki.ros.org/rtt_ros_integration_example

So I am mostly confused about the rtt_ros_integration.

Thanks for your patience,
Sietse

How to get a HelloRobot example to work in orocos/ros?

On 11-11-13 18:24, Willy Lambert wrote:

> Are you sure thatOrocos toolchain 2.7 is released ? I've seen a branch in git but not offical communication on this.

I first tried using the current stable 2.6 version, but got into trouble, see my earlier messages starting from Oct. 23.
Ruben more or less suggested to try this. And it looked promising at first.
But you're right, it is a bit ambitious;)

I now know a little bit more about Orocos, so I will try again with the stable versions.
On the website I only see a solution using the combination ros-groovy with orocos toolchain-2.6.
Are that the versions I should use, or is it possible/better to use ros-hydro with orocos toolchain-2.6?

Thanks in advance,
Sietse

How to get a HelloRobot example to work in orocos/ros?

As the deployer program is not found you should check that orocos has been
compiled and if yes if it is on the ros searching path. I'm away from my
computer so I can't help more, but nothing will work until this is not
corrected.
Le 11 nov. 2013 13:13, "Sietse Achterop" <s [dot] achterop [..] ...> a écrit :

> Dear list,
>
> I am trying to get the HelloRobot example from
> http://wiki.ros.org/rtt_ros_integration_example
> to work.
> It builds, but I can't get it to work. The complexity of orocos/ros/c++
> still confuses me:(
> Hopefully someone can give me some pointers so I can get a working example.
> Here the details.
>
> Context:
> ros-hydro
> - installed via ubuntu (12.04, 64 bit) packages.
> orocos toolchain-2.7 using catkin
> - via git clone --recursive
> http://git.gitorious.org/orocos-toolchain/orocos_toolchain.git -b
> toolchain-2.7
> rtt_ros_integration using catkin
> - via git clone
> https://github.com/jhu-lcsr-forks/rtt_ros_integration.git
> (removed directory tests/rtt_roscomm_tests because of errors in
> building)
> This all seems to build install properly. I can use ros-examples, and
> orocos-examples separately.
>
> Now the example.
> I only use the rtt_ros_integration_example (directory) from
> http://wiki.ros.org/rtt_ros_integration_example
> this because the rtt_actionlib_examples gives errors.
> Again using catkin, it build-installs ok
>
> I try to start it with
> rosrun ocl deployer-gnulinux -s example.ops
> (there is no deploy.ops file as mentioned on the web page)
> this gives:
> [rosrun] Couldn't find executable named deployer-gnulinux below
> /home/p100213/ROSWS/install_isolated/share/ocl
>
> (Why does is look for the deployer there?)
>
> If I try
> roslaunch rtt_ros_integration_example example.launch
> we get:
>
> ... logging to
> /home/p100213/.ros/log/3b86eede-4ab4-11e3-b4d8-002481150e15/roslaunch-fwn-nb4-16-202-15815.log
> Checking log directory for disk usage. This may take awhile.
> Press Ctrl-C to interrupt
> Done checking log file disk usage. Usage is <1GB.
>
> while processing
> /home/p100213/ROSWS/install_isolated/share/rtt_ros/launch/deployer.launch:
> Invalid roslaunch XML syntax: [Errno 2] No such file or directory:
> u'/home/p100213/ROSWS/install_isolated/share/rtt_ros/launch/deployer.launch'
>
> (There is no such file there indeed.)
>
> What am I doing wrong?
>
> Next to that I cannot find where the rtt_ros integration code is really
> used in the code.
> Looking in src/HelloRobot.cpp, I don't see this.
> I see the include, and I see the dependency mentioned in package.xml, but
> no real use of the code.
> So how is the connection really made to ros.
> Is that done via "rosrun ocl ...."?
> But how contretely?
>
> Thanks in advance.
> Sietse
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

How to get a HelloRobot example to work in orocos/ros?

On 11-11-13 16:05, Willy Lambert wrote:
> As the deployer program is not found you should check that orocos has been compiled and if yes if it is on the ros searching path. I'm away from my computer so I can't help more,
> but nothing will work until this is not corrected.

Hello Willy,
thanks for the response.

I found that in the toolchain 2.6 the deployer is "under" .../share/ocl,
but in my installment of toolchain-2.7 it is in .../bin
When I put a symbolic link to that bin in share/ocl the deployer starts properly.

This wil probably not solve everything, but let's see how far this gets me.
Thanks,
Sietse

How to get a HelloRobot example to work in orocos/ros?

2013/11/11 Sietse Achterop <s [dot] achterop [..] ...>

> On 11-11-13 16:05, Willy Lambert wrote:
> > As the deployer program is not found you should check that orocos has
> been compiled and if yes if it is on the ros searching path. I'm away from
> my computer so I can't help more,
> > but nothing will work until this is not corrected.
>
> Hello Willy,
> thanks for the response.
>
> I found that in the toolchain 2.6 the deployer is "under" .../share/ocl,
> but in my installment of toolchain-2.7 it is in .../bin
> When I put a symbolic link to that bin in share/ocl the deployer starts
> properly.
>
> This wil probably not solve everything, but let's see how far this gets me.
> Thanks,
> Sietse
>

Hum,

Are you sure thatOrocos toolchain 2.7 is released ? I've seen a branch in
git but not offical communication on this.

I think it's a working branch and you should stick to 2.6 if it's your
first time with Orocos.
(cf
http://www.orocos.org/wiki/main-page/toolchain/toolchain-reference-manua...
2.7 is not referenced)

(If I may do gentle a remark :) If the 2.7 branch is not stable it is not
very clever to name it as if it was a stable publicly available branch. I'm
not surprised someone was fooled by this.

BTW : what happened to branches previous 2.5 ? Is it to avoid maintaining
support on older versions ?

>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>