ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Nicolas Gerig's profile - activity

2019-03-04 02:28:29 -0500 marked best answer ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

Hi !

I am using Ubuntu 16.04 with a real-time patched kernel (4.14.93-rt53). I have tested my system with cyclic tests and am happy about the realtime performance.

I have built and installed Ros2 (Crystal Clemmys) according to this manual: https://index.ros.org/doc/ros2/Instal... . The talker and listener examples work fine.

When I try to run the pendulum demo ( https://index.ros.org/doc/ros2/Tutori... ) I get an unexpected output:

$ RMW_IMPLEMENTATION=rmw_connext_cpp pendulum_demo
RTI Data Distribution Service Non-commercial license is for academic, research, evaluation and personal use only. USE FOR COMMERCIAL PURPOSES IS PROHIBITED. See RTI_LICENSE.TXT for terms. Download free tools at rti.com/ncl. License issued to Non-Commercial User license@rti.com For non-production use only.
Expires on 00-jan-00 See www.rti.com for more information.
RTI Data Distribution Service Non-commercial license is for academic, research, evaluation and personal use only. USE FOR COMMERCIAL PURPOSES IS PROHIBITED. See RTI_LICENSE.TXT for terms. Download free tools at rti.com/ncl. License issued to Non-Commercial User license@rti.com For non-production use only.
Expires on 00-jan-00 See www.rti.com for more information.
Couldn't set scheduling priority and policy: Operation not permitted
Killed

I could get rid of the line:

 Couldn't set scheduling priority and policy: Operation not permitted

I have tried to give the rights according to this: https://index.ros.org/doc/ros2/Tutori...

I can also see (after logon/logoff) that the rights are updated accordingly:

$ ulimit -r
98

Now the output is without this line, but still gets killed:

$ RMW_IMPLEMENTATION=rmw_connext_cpp pendulum_demo
RTI Data Distribution Service Non-commercial license is for academic, research, evaluation and personal use only. USE FOR COMMERCIAL PURPOSES IS PROHIBITED. See RTI_LICENSE.TXT for terms. Download free tools at rti.com/ncl. License issued to Non-Commercial User license@rti.com For non-production use only.
Expires on 00-jan-00 See www.rti.com for more information.
RTI Data Distribution Service Non-commercial license is for academic, research, evaluation and personal use only. USE FOR COMMERCIAL PURPOSES IS PROHIBITED. See RTI_LICENSE.TXT for terms. Download free tools at rti.com/ncl. License issued to Non-Commercial User license@rti.com For non-production use only.
Expires on 00-jan-00 See www.rti.com for more information.
Killed

I have found a very similar (unanswered) question and initially posted mine (by mistake) as an answer here: https://answers.ros.org/question/3030...

I would be happy to receive any Input. Since I am inexperienced with Ros, it might very well be some rookie mistake. Thank you! Nicolas

Update: Testing with rttest and debugging with gdb

According gvdhoorn's suggestion I have tested example_loop from ros2/realtime_support/rttest. Unfortunately this program gets Killed as well.

To debug the example_loop with gdb I have rebuild and started with

$ cmake ../ -DCMAKE_BUILD_TYPE=Debug 
$ make

$ gdb ./example_loop
(gdb) r

and received the following output:

Starting program: /home/<myUserName>/realtime_support/rttest/examples/build/example_loop
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program ...
(more)
2019-03-04 02:28:29 -0500 received badge  Scholar (source)
2019-03-04 02:28:26 -0500 edited answer ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

Found the issue, my bad. Thank you all for your valuable feedback! I have learnt a lot already while testing the belo

2019-03-04 02:28:15 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied. Hi ! I am using Ubuntu 16.04

2019-03-04 02:28:01 -0500 answered a question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

Edit: found the issue, my bad. Thank you all for your valuable feedback! I have learnt a lot already while testing th

2019-03-04 02:24:00 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied. Hi ! original/edited problem

2019-03-04 01:58:27 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied. Hi ! Edit: found the issue, m

2019-03-04 01:52:10 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo gets killed Hi ! I am using Ubuntu 16.04 with a real-time patched kernel (4.14.93-rt53). I have test

2019-03-04 01:50:15 -0500 received badge  Famous Question (source)
2019-02-07 11:07:01 -0500 commented question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

Thank you for your hints! I will investigate memory usage (and install the setup on a different machine as well). Unfort

2019-02-07 07:08:49 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo gets killed Hi ! I am using Ubuntu 16.04 with a real-time patched kernel (4.14.93-rt53). I have test

2019-02-07 06:37:34 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo gets killed Hi ! I am using Ubuntu 16.04 with a real-time patched kernel (4.14.93-rt53). I have test

2019-02-07 06:26:13 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo gets killed Hi ! I am using Ubuntu 16.04 with a real-time patched kernel (4.14.93-rt53). I have test

2019-02-07 06:23:44 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo gets killed Hi ! I am using Ubuntu 16.04 with a real-time patched kernel (4.14.93-rt53). I have test

2019-02-07 05:05:25 -0500 commented question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

I am trying to do that now (never used gdb before). I have rebuilt example_loop to add debug info: $ cmake ../ -DCMA

2019-02-07 03:46:53 -0500 commented question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

Hi gvdhoorn, Thank you for your support! I have updated the title and tested the example_loop. Unfortunately, the examp

2019-02-07 01:43:51 -0500 received badge  Notable Question (source)
2019-02-06 06:55:16 -0500 received badge  Popular Question (source)
2019-02-06 06:40:19 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo gets killed Hi ! I am using Ubuntu 16.04 with a real-time patched kernel (4.14.93-rt53). I have test

2019-02-06 06:40:15 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo could not set scheduling priority and gets killed Hi ! I am using Ubuntu 16.04 with a real-time patc

2019-02-06 06:40:15 -0500 received badge  Editor (source)
2019-02-06 04:17:19 -0500 received badge  Student (source)
2019-02-06 04:00:43 -0500 commented answer ROS2/pendulum demo freezes the system

Sure, sorrt for confusing this reply/answer. I have created a new question here: https://answers.ros.org/question/314846

2019-02-06 03:59:32 -0500 received badge  Organizer (source)
2019-02-06 03:56:50 -0500 edited question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo could not set scheduling priority and gets killed Hi ! I am using Ubuntu 16.04 with a real-time patc

2019-02-06 03:44:13 -0500 asked a question ROS2/pendulum demo (and rttest/example_loop) get killed if 8GB free RAM is not satisfied.

ROS2/pendulum demo could not set scheduling priority and gets killed Hi ! I am using Ubuntu 16.04 with a real-time patc

2019-02-06 02:35:22 -0500 answered a question ROS2/pendulum demo freezes the system

Hi, How did you solve your problem? I believe the following 3 lines are due to missing rights to block memory (memlock