Comments (3)
Here is my local environment result, ros2 topic hz
shows stable user-space CPU consumption. (ros-humble-rclpy
is
3.3.11-1jammy.20231117.192526
)
root@tomoyafujita:~# ros2 topic pub -r 100 /turtle1/cmd_vel geometry_msgs/msg/Twist "{linear: {x: 2.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 1.8}}"
...<snip>
root@tomoyafujita:~# ros2 topic hz /turtle1/cmd_vel
...<snip>
average rate: 100.000
min: 0.008s max: 0.012s std dev: 0.00067s window: 1709
average rate: 100.000
min: 0.008s max: 0.012s std dev: 0.00067s window: 1809
average rate: 99.997
min: 0.008s max: 0.012s std dev: 0.00066s window: 1909
then
tomoyafujita@~/DVT >ps -ef | grep ros2
root 3085732 3082361 11 10:40 pts/1 00:00:05 /usr/bin/python3 /opt/ros/humble/bin/ros2 topic pub -r 100 /turtle1/cmd_vel geometry_msgs/msg/Twist {linear: {x: 2.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 1.8}}
root 3085745 3082901 10 10:40 pts/3 00:00:04 /usr/bin/python3 /opt/ros/humble/bin/ros2 topic hz /turtle1/cmd_vel
tomoyafujita@~/DVT >pidstat -h -r -u -v -p 3085732,3085745 5
Linux 5.15.0-88-generic (tomoyafujita) 12/05/2023 _x86_64_ (16 CPU)
...<snip>
# Time UID PID %usr %system %guest %wait %CPU CPU minflt/s majflt/s VSZ RSS %MEM threads fd-nr Command
10:41:35 AM 0 3085732 11.20 0.20 0.00 0.00 11.40 3 0.00 0.00 620492 59844 0.18 10 -1 ros2
10:41:35 AM 0 3085745 10.40 0.20 0.00 0.00 10.60 0 1.00 0.00 489128 59672 0.18 10 -1 ros2
# Time UID PID %usr %system %guest %wait %CPU CPU minflt/s majflt/s VSZ RSS %MEM threads fd-nr Command
10:41:40 AM 0 3085732 10.60 0.20 0.00 0.00 10.80 5 0.00 0.00 620492 59844 0.18 10 -1 ros2
10:41:40 AM 0 3085745 10.00 0.00 0.00 0.00 10.00 0 1.00 0.00 489128 59672 0.18 10 -1 ros2
# Time UID PID %usr %system %guest %wait %CPU CPU minflt/s majflt/s VSZ RSS %MEM threads fd-nr Command
10:41:45 AM 0 3085732 11.00 0.20 0.00 0.00 11.20 3 0.00 0.00 620492 59844 0.18 10 -1 ros2
10:41:45 AM 0 3085745 10.60 0.00 0.00 0.00 10.60 13 1.00 0.00 489128 59672 0.18 10 -1 ros2
# Time UID PID %usr %system %guest %wait %CPU CPU minflt/s majflt/s VSZ RSS %MEM threads fd-nr Command
10:41:50 AM 0 3085732 11.20 0.00 0.00 0.00 11.20 5 0.00 0.00 620492 59844 0.18 10 -1 ros2
10:41:50 AM 0 3085745 10.60 0.20 0.00 0.00 10.80 10 1.00 0.00 489128 59672 0.18 10 -1 ros2
# Time UID PID %usr %system %guest %wait %CPU CPU minflt/s majflt/s VSZ RSS %MEM threads fd-nr Command
10:41:55 AM 0 3085732 10.80 0.00 0.00 0.00 10.80 5 0.00 0.00 620492 59844 0.18 10 -1 ros2
10:41:55 AM 0 3085745 10.20 0.00 0.00 0.00 10.20 11 1.00 0.00 489128 59936 0.18 10 -1 ros2
# Time UID PID %usr %system %guest %wait %CPU CPU minflt/s majflt/s VSZ RSS %MEM threads fd-nr Command
10:42:00 AM 0 3085732 10.80 0.40 0.00 0.00 11.20 10 0.00 0.00 620492 59844 0.18 10 -1 ros2
10:42:00 AM 0 3085745 10.40 0.40 0.00 0.00 10.80 9 1.00 0.00 489128 59936 0.18 10 -1 ros2
# Time UID PID %usr %system %guest %wait %CPU CPU minflt/s majflt/s VSZ RSS %MEM threads fd-nr Command
10:42:05 AM 0 3085732 10.80 0.20 0.00 0.00 11.00 7 0.00 0.00 620492 59844 0.18 10 -1 ros2
10:42:05 AM 0 3085745 9.60 0.60 0.00 0.00 10.20 0 1.00 0.00 489128 59936 0.18 10 -1 ros2
# Time UID PID %usr %system %guest %wait %CPU CPU minflt/s majflt/s VSZ RSS %MEM threads fd-nr Command
10:42:10 AM 0 3085732 10.40 0.20 0.00 0.00 10.60 8 0.00 0.00 620492 59844 0.18 10 -1 ros2
10:42:10 AM 0 3085745 9.80 0.40 0.00 0.00 10.20 14 0.60 0.00 489128 59936 0.18 10 -1 ros2
# Time UID PID %usr %system %guest %wait %CPU CPU minflt/s majflt/s VSZ RSS %MEM threads fd-nr Command
10:42:15 AM 0 3085732 11.40 0.00 0.00 0.00 11.40 12 0.00 0.00 620492 59844 0.18 10 -1 ros2
10:42:15 AM 0 3085745 10.40 0.60 0.00 0.00 11.00 8 0.00 0.00 489128 59936 0.18 10 -1 ros2
# Time UID PID %usr %system %guest %wait %CPU CPU minflt/s majflt/s VSZ RSS %MEM threads fd-nr Command
10:42:20 AM 0 3085732 10.60 0.20 0.00 0.00 10.80 12 0.00 0.00 620492 59844 0.18 10 -1 ros2
10:42:20 AM 0 3085745 10.00 0.20 0.00 0.00 10.20 14 0.00 0.00 489128 59936 0.18 10 -1 ros2
from rclpy.
Will try today again with clean OS install.
from rclpy.
I reinstalled OS and this is not happened.
from rclpy.
Related Issues (20)
- Feature Request for MultiProcessExecutor HOT 2
- async wait/sleep implementation HOT 4
- KeyError in ActionServer._execute_goal HOT 5
- [Feature] Static Type Checking With ament_mypy HOT 1
- Added optional TimerInfo to timer callback
- :farmer: `test_guard_condition` failing consisntent in CycloneDDS HOT 1
- Add utility function to get datetime.datetime from Time HOT 1
- Decode ROS2 raw byte data using rclpy.serialization.deserialize_message HOT 3
- Rate object's destroy() does not destroy the underlying Timer object, leading to CPU usage explosion HOT 6
- Update the executor to not throw ExternalShutdownException
- Make nodes, publishers, subscriptions, services, clients, action servers, action clients Python context managers
- aarch64 cross compiling HOT 9
- Executors mishandle invalid waitables HOT 4
- context.on_shutdown is never called HOT 7
- Bad interaction between `torch.compile` and `MultiThreadedExecutor` HOT 1
- First Time Contributors Documentation (CONTRIBUTING.md) HOT 2
- Python message with uint32 Assertion `PyLong_Check(field)' failed HOT 2
- Memory leak in ActionServer. ```taken_data = self._handle.take_goal_request``` HOT 4
- [Bug] error when node created with rclpy.node.Node HOT 1
- Async tasks are processed in LIFO not FIFO HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rclpy.