You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/How-To-Guides/DDS-tuning.rst
+5-5
Original file line number
Diff line number
Diff line change
@@ -71,20 +71,20 @@ Because of the increased serialization overhead, severe performance degradation
71
71
**Workaround:** Use multiple arrays of primitives instead of a single array of custom types, or pack into byte array as done e.g. in ``PointCloud2`` messages.
72
72
For example, instead of defining a ``FooArray`` message as:
73
73
74
-
.. code-block:: console
74
+
.. code-block:: bash
75
75
76
76
Foo[] my_large_array
77
77
78
78
with ``Foo`` is defined as:
79
79
80
-
.. code-block:: console
80
+
.. code-block:: bash
81
81
82
82
uint64 foo_1
83
83
uint32 foo_2
84
84
85
85
Instead, define ``FooArray`` as:
86
86
87
-
.. code-block:: console
87
+
.. code-block:: bash
88
88
89
89
uint64[] foo_1_array
90
90
uint32[] foo_2_array
@@ -116,7 +116,7 @@ Set the maximum receive buffer size, ``rmem_max``, by running:
116
116
117
117
Or permanently set it by editing the ``/etc/sysctl.d/10-cyclone-max.conf`` file to contain:
118
118
119
-
.. code-block:: console
119
+
.. code-block:: bash
120
120
121
121
net.core.rmem_max=2147483647
122
122
@@ -136,7 +136,7 @@ Next, to set the minimum socket receive buffer size that Cyclone requests, write
136
136
137
137
Then, whenever you are going to run a node, set the following environment variable:
Copy file name to clipboardExpand all lines: source/How-To-Guides/Getting-Backtraces-in-ROS-2.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ Once your program crashes, it will return a gdb session prompt denoted by ``(gdb
113
113
At this prompt you can access the information you're interested in.
114
114
However, since this is a ROS project with lots of node configurations and other things going on, this isn't a great option for beginners or those that don't like tons of commandline work and understanding the filesystem.
115
115
116
-
.. code-block:: bash
116
+
.. code-block:: console
117
117
118
118
$ gdb ex run --args /path/to/exe/program
119
119
@@ -143,7 +143,7 @@ This is because GDB, when launched this way, lacks the environment setup that no
143
143
Rather than having to revert to finding the install path of the executable and typing it all out, we can instead use ``--prefix``.
144
144
This allows us to use the same ``ros2 run`` syntax you're used to without having to worry about some of the GDB details.
145
145
146
-
.. code-block:: bash
146
+
.. code-block:: console
147
147
148
148
$ ros2 run --prefix 'gdb -ex run --args' <pkg> <node> --all-other-launch arguments
0 commit comments