ros_generate_rtt_service_proxies Memory Leak

Dear all,

I am working with the rtt_ros_integration packages (Ubuntu 12.04, ROS Hydro (catkin), Toolchain 2.7). To communicate with ros topics and services, I used the rtt_roscomm package as suggested.

I created a simple orocos component to connect to a ros package that has a publisher and a set of services. I had to generate the typekits for the ros msgs and srvs.

I used the command: rosrun rtt_roscomm create_rtt_msgs test and it created a (rtt_test) package with a CMakeLists.txt and a package.xml files.

But when I run catkin_make, the computer freezes when building the rtt_test package: [ 98%] Building CXX object rtt_test/test_service_proxies/CMakeFiles/rtt_test_rosservice_proxies.dir/rtt_rosservice_proxies.cpp.o

I noticed that when commenting the line '#ros_generate_rtt_service_proxies(test)', it no longer crashes.

cmake_minimum_required(VERSION 2.8.3) project(rtt_test)

find_package(catkin REQUIRED COMPONENTS rtt_roscomm)

ros_generate_rtt_typekit(test)

  1. ros_generate_rtt_service_proxies(test)

orocos_generate_package(

  DEPENDS test
  DEPENDS_TARGETS rtt_roscomm  rtt_std_msgs
 rtt_rosgraph_msgs
)

When I monitor the resources during the building step, I notice the memory and swap usage go to the limit, then the computer completely freezes.

Is this a known issue? I am just a new user so I am clueless about how to proceed!

Thanks in advance. Best regards, Carlos

ros_generate_rtt_service_proxies Memory Leak

Dear Carlos,

2015-07-24 15:59 GMT+02:00 <carlosfaria89 [..] ...>:
> Dear all,
>
> I am working with the rtt_ros_integration packages (Ubuntu 12.04, ROS Hydro
> (catkin), Toolchain 2.7). To communicate with ros topics and services, I used
> the rtt_roscomm package as suggested.
>
> I created a simple orocos component to connect to a ros package that has a
> publisher and a set of services. I had to generate the typekits for the ros
> msgs and srvs.
>
> I used the command: rosrun rtt_roscomm create_rtt_msgs test
> and [...]
>
> When I monitor the resources during the building step, I notice the memory
> and swap usage go to the limit, then the computer completely freezes.
I recognize this behavior as the one given by CMake if there are
recursive calls (caused by one or more macros used).
When commenting the line you are referring, very likely you removed
that conflict. However, I don't know by hand which is the issue.
Options in mind are:
- a bug on that macro;
- you should use the macro you are referring not in combination with another one

Hope this helps,
- Enea