Package Summary
| Tags | No category tags. |
| Version | 0.6.2 |
| License | Apache License 2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/ros2/demos.git |
| VCS Type | git |
| VCS Version | crystal |
| Last Updated | 2019-01-15 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
Package Description
Additional Links
Maintainers
- Michael Carroll
Authors
- Jackie Kay
- Mikael Arguedas
Build instructions
If you haven't already, clone rttest into your ament workspace.
Build your ament workspace:
./src/ament/ament_tools/scripts/ament.py build --symlink-install
You can add --only pendulum_control if you want to only rebuild this package.
Run:
. install/setup.bash
pendulum_demo[__rmw_opensplice/__rmw_connext]
The demo runs with both PrismTech OpenSplice and RTI Connext (if RTI Connext is available). However, it has better performance with RTI Connext.
A few command line arguments related to real-time performance profiling are provided by rttest. See https://github.com/ros2/rttest/blob/master/README.md for more information.
The demo will spit out a lot of output as it runs. Try redirecting the results to a file:
pendulum_demo[__rmw_opensplice/__rmw_connext] > output.txt
Running with real-time performance
The demo will print out its performance statistics continuously and at the end of the program.
Example final output:
rttest statistics:
- Minor pagefaults: 0
- Major pagefaults: 0
Latency (time after deadline was missed):
- Min: 2414 ns
- Max: 45949 ns
- Mean: 8712.12 ns
- Standard deviation: 1438.74
Ideally you want to see 0 minor or major pagefaults and an average latency of less than 30,000 nanosceonds (3% of the 1 millisecond update period).
If you see pagefaults, you may not have permission to lock memory via mlockall.
You need to adjust the system limits for memory locking.
Add to /etc/security/limits.conf:
<user> - memlock <limit in kB>
A limit of -1 is unlimited.
If you choose this, you may need to accompany it with ulimit -l unlimited after editing the file.
After saving the file, log out and log back in.
If you see a high mean latency in the results, you may need to adjust the maximum priority for processes.
Add to /etc/security/limits.conf:
<user> - rtprio <maximum priority>
The range of the priority is 0-99. However, do NOT set the limit to 99 because then your processes could interfere with important system processes that run at the top priority (e.g. watchdog). This demo will attempt to run the control loop at priority 98.
With these settings you can get decent average performance even if you don't have the RT_PREEMPT kernel installed, but you will likely see an unacceptably large maximum latency and periodic latency spikes.
Dynamic allocation
The demo will also print to the console whenever malloc is called, along with debug symbols from the backtrace for that stack.
If you search the output of the demo, you will see that malloc is only called during the initialization phase of the program.
This is consistent with the requirements of real-time programming (to prevent non-determinstic blocking in the allocator).
However, without memory locking, you may still see some pagefaults due to reading memory that was allocated but not read into cache.
Could not convert RST to MD: No such file or directory - pandoc
Wiki Tutorials
Source Tutorials
Package Dependencies
| Deps | Name | |
|---|---|---|
| 1 | rclcpp | |
| 1 | pendulum_msgs | |
| 1 | rttest | |
| 1 | tlsf_cpp | |
| 1 | ament_cmake | |
| 1 | ament_cmake_pytest | |
| 1 | ament_lint_auto | |
| 1 | ament_lint_common | |
| 1 | launch | |
| 1 | launch_testing | |
| 1 | rmw_implementation_cmake | |
| 1 | ros2run |
System Dependencies
Dependant Packages
| Name | Repo | Deps |
|---|---|---|
| desktop | github-ros2-variants |
Launch files
Messages
Services
Plugins
Recent questions tagged pendulum_control at answers.ros.org
Package Summary
| Tags | No category tags. |
| Version | 0.5.1 |
| License | Apache License 2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/ros2/demos.git |
| VCS Type | git |
| VCS Version | bouncy |
| Last Updated | 2018-10-29 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
Package Description
Additional Links
Maintainers
- Mikael Arguedas
Authors
- Jackie Kay
Build instructions
If you haven't already, clone rttest into your ament workspace.
Build your ament workspace:
./src/ament/ament_tools/scripts/ament.py build --symlink-install
You can add --only pendulum_control if you want to only rebuild this package.
Run:
. install/setup.bash
pendulum_demo[__rmw_opensplice/__rmw_connext]
The demo runs with both PrismTech OpenSplice and RTI Connext (if RTI Connext is available). However, it has better performance with RTI Connext.
A few command line arguments related to real-time performance profiling are provided by rttest. See https://github.com/ros2/rttest/blob/master/README.md for more information.
The demo will spit out a lot of output as it runs. Try redirecting the results to a file:
pendulum_demo[__rmw_opensplice/__rmw_connext] > output.txt
Running with real-time performance
The demo will print out its performance statistics continuously and at the end of the program.
Example final output:
rttest statistics:
- Minor pagefaults: 0
- Major pagefaults: 0
Latency (time after deadline was missed):
- Min: 2414 ns
- Max: 45949 ns
- Mean: 8712.12 ns
- Standard deviation: 1438.74
Ideally you want to see 0 minor or major pagefaults and an average latency of less than 30,000 nanosceonds (3% of the 1 millisecond update period).
If you see pagefaults, you may not have permission to lock memory via mlockall.
You need to adjust the system limits for memory locking.
Add to /etc/security/limits.conf:
<user> - memlock <limit in kB>
A limit of -1 is unlimited.
If you choose this, you may need to accompany it with ulimit -l unlimited after editing the file.
After saving the file, log out and log back in.
If you see a high mean latency in the results, you may need to adjust the maximum priority for processes.
Add to /etc/security/limits.conf:
<user> - rtprio <maximum priority>
The range of the priority is 0-99. However, do NOT set the limit to 99 because then your processes could interfere with important system processes that run at the top priority (e.g. watchdog). This demo will attempt to run the control loop at priority 98.
With these settings you can get decent average performance even if you don't have the RT_PREEMPT kernel installed, but you will likely see an unacceptably large maximum latency and periodic latency spikes.
Dynamic allocation
The demo will also print to the console whenever malloc is called, along with debug symbols from the backtrace for that stack.
If you search the output of the demo, you will see that malloc is only called during the initialization phase of the program.
This is consistent with the requirements of real-time programming (to prevent non-determinstic blocking in the allocator).
However, without memory locking, you may still see some pagefaults due to reading memory that was allocated but not read into cache.
Could not convert RST to MD: No such file or directory - pandoc
Wiki Tutorials
Source Tutorials
Package Dependencies
| Deps | Name | |
|---|---|---|
| 1 | rclcpp | |
| 1 | pendulum_msgs | |
| 1 | rttest | |
| 1 | tlsf_cpp | |
| 1 | ament_cmake | |
| 1 | ament_cmake_pytest | |
| 1 | ament_lint_auto | |
| 1 | ament_lint_common | |
| 1 | launch | |
| 1 | launch_testing | |
| 1 | rmw_implementation_cmake | |
| 1 | ros2run |
System Dependencies
Dependant Packages
| Name | Repo | Deps |
|---|---|---|
| desktop | github-ros2-variants |
Launch files
Messages
Services
Plugins
Recent questions tagged pendulum_control at answers.ros.org
Package Summary
| Tags | No category tags. |
| Version | 0.4.0 |
| License | Apache License 2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Checkout URI | https://github.com/ros2/demos.git |
| VCS Type | git |
| VCS Version | ardent |
| Last Updated | 2017-12-08 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
Package Description
Additional Links
Maintainers
- Jackie Kay
Authors
Build instructions
If you haven't already, clone rttest into your ament workspace.
Build your ament workspace:
./src/ament/ament_tools/scripts/ament.py build --symlink-install
You can add --only pendulum_control if you want to only rebuild this package.
Run:
. install/setup.bash
pendulum_demo[__rmw_opensplice/__rmw_connext]
The demo runs with both PrismTech OpenSplice and RTI Connext (if RTI Connext is available). However, it has better performance with RTI Connext.
A few command line arguments related to real-time performance profiling are provided by rttest. See https://github.com/ros2/rttest/blob/master/README.md for more information.
The demo will spit out a lot of output as it runs. Try redirecting the results to a file:
pendulum_demo[__rmw_opensplice/__rmw_connext] > output.txt
Running with real-time performance
The demo will print out its performance statistics continuously and at the end of the program.
Example final output:
rttest statistics:
- Minor pagefaults: 0
- Major pagefaults: 0
Latency (time after deadline was missed):
- Min: 2414 ns
- Max: 45949 ns
- Mean: 8712.12 ns
- Standard deviation: 1438.74
Ideally you want to see 0 minor or major pagefaults and an average latency of less than 30,000 nanosceonds (3% of the 1 millisecond update period).
If you see pagefaults, you may not have permission to lock memory via mlockall.
You need to adjust the system limits for memory locking.
Add to /etc/security/limits.conf:
<user> - memlock <limit in kB>
A limit of -1 is unlimited.
If you choose this, you may need to accompany it with ulimit -l unlimited after editing the file.
After saving the file, log out and log back in.
If you see a high mean latency in the results, you may need to adjust the maximum priority for processes.
Add to /etc/security/limits.conf:
<user> - rtprio <maximum priority>
The range of the priority is 0-99. However, do NOT set the limit to 99 because then your processes could interfere with important system processes that run at the top priority (e.g. watchdog). This demo will attempt to run the control loop at priority 98.
With these settings you can get decent average performance even if you don't have the RT_PREEMPT kernel installed, but you will likely see an unacceptably large maximum latency and periodic latency spikes.
Dynamic allocation
The demo will also print to the console whenever malloc is called, along with debug symbols from the backtrace for that stack.
If you search the output of the demo, you will see that malloc is only called during the initialization phase of the program.
This is consistent with the requirements of real-time programming (to prevent non-determinstic blocking in the allocator).
However, without memory locking, you may still see some pagefaults due to reading memory that was allocated but not read into cache.
Wiki Tutorials
Source Tutorials
Package Dependencies
| Deps | Name | |
|---|---|---|
| 1 | rclcpp | |
| 1 | pendulum_msgs | |
| 1 | rttest | |
| 1 | tlsf_cpp | |
| 1 | ament_cmake | |
| 1 | ament_cmake_pytest | |
| 1 | ament_lint_auto | |
| 1 | ament_lint_common | |
| 1 | launch | |
| 1 | launch_testing | |
| 1 | rmw_implementation_cmake | |
| 1 | ros2run |
System Dependencies
Dependant Packages
| Name | Repo | Deps |
|---|---|---|
| desktop | github-ros2-variants |