Skip to content

Commit aa4de52

Browse files
committed
Fix typos
1 parent ecefa55 commit aa4de52

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

_docs/tutorials/programming_rcl_rclc/parameters/parameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Note: micro-ROS parameter server is only supported on ROS2 galactic distribution
4545

4646
- Memory and executor requirements:
4747
The variable `RCLC_PARAMETER_EXECUTOR_HANDLES_NUMBER` defines the RCLC executor handles required for a parameter server.
48-
This needs to be taken into account when initializing the executor and on the colcon memory configuration of the `rmw-microxredds` package, which will need atleast 4 services and 1 publisher:
48+
This needs to be taken into account when initializing the executor and on the colcon memory configuration of the `rmw-microxredds` package, which will need at least 4 services and 1 publisher:
4949

5050
```C
5151
# colcon.meta example with minimum memory requirements to use parameter server
@@ -72,7 +72,7 @@ Note: micro-ROS parameter server is only supported on ROS2 galactic distribution
7272

7373
## <a name="parameters_callback"/>Callback
7474

75-
When adding the paramater server to the executor, a callback can be configured.
75+
When adding the parameter server to the executor, a callback can be configured.
7676
This callback will be executed after a parameter value is modified.
7777

7878
A pointer to the changed parameter is passed as first and only argument. Example:

_docs/tutorials/programming_rcl_rclc/pub_sub/pub_sub.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t
7373
}
7474
```
7575
76-
For a detail on the avaliable QoS options and the advantages and disadvantages between reliable and best effort modes, check the [QoS tutorial](../qos/).
76+
For a detail on the available QoS options and the advantages and disadvantages between reliable and best effort modes, check the [QoS tutorial](../qos/).
7777
7878
## <a name="pub_publish"/>Publish a message
7979
@@ -114,7 +114,7 @@ The suscriptor initialization is almost identical to the publisher one:
114114
// Get message type support
115115
const rosidl_message_type_support_t * type_support = ROSIDL_GET_MSG_TYPE_SUPPORT(std_msgs, msg, Int32);
116116

117-
// Initialize a realiable subscriber
117+
// Initialize a reliable subscriber
118118
rcl_ret_t rc = rclc_subscription_init_default(&subscriber, &node, &type_support, &topic_name);
119119

120120
if (RCL_RET_OK != rc) {
@@ -164,11 +164,11 @@ The suscriptor initialization is almost identical to the publisher one:
164164
}
165165
```
166166
167-
For a detail on the avaliable QoS options and the advantages and disadvantages between reliable and best effort modes, check the [QoS tutorial](../qos/).
167+
For a detail on the available QoS options and the advantages and disadvantages between reliable and best effort modes, check the [QoS tutorial](../qos/).
168168
169169
### <a name="sub_callback"/>Callbacks
170170
The executor is responsible to call the configured callback when a message is published.
171-
The function will have the message as its only argument, containing the values sended by the publisher:
171+
The function will have the message as its only argument, containing the values sent by the publisher:
172172
173173
// TODO: explain function prototype?
174174
```C
@@ -201,7 +201,7 @@ rclc_executor_spin(&executor);
201201
```
202202
203203
## <a name="pubsub_msg"/>Message initialization
204-
Before publishing or receiving a message, it may be neccesary to initialize its memory for types with strings or sequences.
204+
Before publishing or receiving a message, it may be necessary to initialize its memory for types with strings or sequences.
205205
Check the [Handling messages memory in micro-ROS](../../advanced/handling_type_memory/) section for details.
206206
207207
## <a name="pubsub_end"/>Cleaning Up

_docs/tutorials/programming_rcl_rclc/qos/QoS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ permalink: /docs/tutorials/programming_rcl_rclc/qos/
88

99
## <a name="qos"/>Reliable QoS
1010

11-
Reliable communication implies a confirmation for each message sended. This mode can detect errors in the communication process at the cost of increasing the message latency and the resources usage.
11+
Reliable communication implies a confirmation for each message sent. This mode can detect errors in the communication process at the cost of increasing the message latency and the resources usage.
1212

13-
This message confirmation proccess can increase blocking time on `rcl_publish` or executor spin calls as reliable publishers, services and clients will wait for acknowledgement for each sended message. `rmw-microxrcedds` offers an API to individually configure the acknowledgement timeout on them:
13+
This message confirmation proccess can increase blocking time on `rcl_publish` or executor spin calls as reliable publishers, services and clients will wait for acknowledgement for each sent message. `rmw-microxrcedds` offers an API to individually configure the acknowledgement timeout on them:
1414

1515
```C
1616
// Confirmation timeout in milliseconds
@@ -35,7 +35,7 @@ This message confirmation proccess can increase blocking time on `rcl_publish` o
3535
3636
## <a name="qos"/>Best Effort
3737
38-
In best effort mode no acknowledgement is needed, the messages sended are expected to be received. This method improves publication throughput and reduces resources usage but is vulnerable to communication errors.
38+
In best effort mode no acknowledgement is needed, the messages sent are expected to be received. This method improves publication throughput and reduces resources usage but is vulnerable to communication errors.
3939
4040
## <a name="qos"/>Custom QoS configuration
4141

_docs/tutorials/programming_rcl_rclc/service/services.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t
7272
}
7373
```
7474
75-
For a detail on the avaliable QoS options and the advantages and disadvantages between reliable and best effort modes, check the [QoS tutorial](../qos/).
75+
For a detail on the available QoS options and the advantages and disadvantages between reliable and best effort modes, check the [QoS tutorial](../qos/).
7676
7777
### <a name="server_callback"/>Callback
7878
7979
Once a request arrives, the executor will call the configured callback with the request and response messages as arguments.
80-
The request message contains the values sended by the client, the response_msg should be modified here as it will be delivered after the callback returns.
80+
The request message contains the values sent by the client, the response_msg should be modified here as it will be delivered after the callback returns.
8181
8282
Using `AddTwoInts.srv` type definition as an example:
8383
@@ -88,7 +88,7 @@ int64 b
8888
int64 sum
8989
```
9090

91-
The client request message will contain two integers `a` and `b`, and expectes the `sum` of them as a response:
91+
The client request message will contain two integers `a` and `b`, and expects the `sum` of them as a response:
9292

9393
```C
9494
void service_callback(const void * request_msg, void * response_msg){
@@ -102,7 +102,7 @@ void service_callback(const void * request_msg, void * response_msg){
102102
}
103103
```
104104
105-
Note that it is neccesary to cast each message to the expected type
105+
Note that it is necessary to cast each message to the expected type
106106
107107
Once the service and the executor are initialized, the service callback must be added to the executor in order to process incoming requests once the executor is spinning:
108108
@@ -190,9 +190,9 @@ The service client initialization is almost identical to the server one:
190190
191191
### <a name="client_callback"/>Callback
192192
The executor is responsible to call the configured callback when the service response arrives.
193-
The function will have the response message as its only argument, containing the values sended by the server.
193+
The function will have the response message as its only argument, containing the values sent by the server.
194194
195-
It is neccesary to cast the response message to the expected type. Example:
195+
It is necessary to cast the response message to the expected type. Example:
196196
```C
197197
void client_callback(const void * response_msg){
198198
// Cast response message to expected type
@@ -246,7 +246,7 @@ rclc_executor_spin(&executor);
246246
```
247247

248248
## <a name="services_msg"/>Message initialization
249-
Before sending or receiving a message, it may be neccesary to initialize its memory for types with strings or sequences.
249+
Before sending or receiving a message, it may be necessary to initialize its memory for types with strings or sequences.
250250
Check the [Handling messages memory in micro-ROS](../../advanced/handling_type_memory/) section for details.
251251

252252
## <a name="services_end"/>Cleaning Up

0 commit comments

Comments
 (0)