Skip to content

Commit d5a704b

Browse files
authored
Merge pull request #75 from gramaziokohler/neutral_lang
master to main/roscore
2 parents 35483d3 + 2f47838 commit d5a704b

File tree

9 files changed

+24
-14
lines changed

9 files changed

+24
-14
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: build
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
branches:
9-
- master
9+
- main
1010

1111
jobs:
1212
build-cpython:

CHANGELOG.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Unreleased
1212

1313
**Changed**
1414

15-
* Changed behavior: Advertising services automatically reconnect when websockets is reconnected
15+
* Changed behavior: Advertising services automatically reconnect when websockets is reconnected.
16+
* References to ROS master change to ROS.
1617

1718
**Added**
1819

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ We love pull requests from everyone! Here's a quick guide to improve the code:
2222

2323
invoke test
2424

25-
5. Start making your changes to the **master** branch (or branch off of it).
25+
5. Start making your changes to the **main** branch (or branch off of it).
2626
6. Make sure all tests still pass:
2727

2828
::

README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ command prompt to ease recurring operations:
107107

108108
For more details, check the *Contributor's Guide* available as part of `the documentation <https://roslibpy.readthedocs.io/>`_.
109109

110+
The default branch was recently renamed to `main`. If you've already cloned this repository,
111+
you'll need to update your local repository structure with the following lines:
112+
113+
::
114+
115+
git branch -m master main
116+
git fetch origin
117+
git branch -u origin/main main
118+
110119

111120
Releasing this project
112121
----------------------

docs/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ you have ROS and `rosbridge` running (see :ref:`ros-setup`).
77

88
These examples assume ROS is running on the same computer where you run the examples.
99
If that is not the case, change the ``host`` argument from ``'localhost'``
10-
to the *IP Address* of your ROS master.
10+
to the *IP Address* of your ROS instance.
1111

1212
First connection
1313
----------------
@@ -139,7 +139,7 @@ Now open a second command prompt and start the listener:
139139
.. note::
140140

141141
It is not relevant where the files are located. They can be in different
142-
folders or even in different computers as long as the ROS master is the same.
142+
folders or even in different computers as long as the ROS instance is the same.
143143

144144

145145
Using services

docs/examples/02_check_latency.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This example shows how to check roundtrip message latency on your system.
99
The output on the console should look similar to the following::
1010

1111
$ python 02_check_latency.py
12-
2020-04-09 07:45:49,909 INFO: Connection to ROS MASTER ready.
12+
2020-04-09 07:45:49,909 INFO: Connection to ROS ready.
1313
2020-04-09 07:45:50,431 INFO: Age of message: 2ms
1414
2020-04-09 07:45:50,932 INFO: Age of message: 2ms
1515
2020-04-09 07:45:51,431 INFO: Age of message: 1ms

src/roslibpy/comm/comm_autobahn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def onConnect(self, response):
2727
LOGGER.debug('Server connected: %s', response.peer)
2828

2929
def onOpen(self):
30-
LOGGER.info('Connection to ROS MASTER ready.')
30+
LOGGER.info('Connection to ROS ready.')
3131
self._manual_disconnect = False
3232
self.factory.ready(self)
3333

src/roslibpy/comm/comm_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def on_open(self, task):
7171
self.factory.client_connection_failed(self, err_code, err_desc)
7272
return
7373

74-
LOGGER.info('Connection to ROS MASTER ready.')
74+
LOGGER.info('Connection to ROS ready.')
7575
self._manual_disconnect = False
7676
self.factory.ready(self)
7777
self.factory.manager.call_in_thread(self.start_listening)

src/roslibpy/ros.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def is_connected(self):
5353
return self.factory.is_connected
5454

5555
def connect(self):
56-
"""Connect to ROS master."""
56+
"""Connect to ROS."""
5757
# Don't try to reconnect if already connected.
5858
if self.is_connected or self.is_connecting:
5959
return
@@ -67,7 +67,7 @@ def _unset_connecting_flag(*args):
6767
self.factory.connect()
6868

6969
def close(self):
70-
"""Disconnect from ROS master."""
70+
"""Disconnect from ROS."""
7171
if self.is_connected:
7272
def _wrapper_callback(proto):
7373
self.emit('closing')
@@ -175,7 +175,7 @@ def _wrapper_callback(proto):
175175
self.factory.on_ready(_wrapper_callback)
176176

177177
def send_on_ready(self, message):
178-
"""Send message to the ROS Master once the connection is established.
178+
"""Send message to ROS once the connection is established.
179179
180180
If a connection to ROS is already available, the message is sent immediately.
181181
@@ -224,7 +224,7 @@ def get_call_results(result_placeholder):
224224
return get_call_results
225225

226226
def call_sync_service(self, message, timeout):
227-
"""Send a blocking service request to the ROS Master once the connection is established,
227+
"""Send a blocking service request to ROS once the connection is established,
228228
waiting for the result to be return.
229229
230230
If a connection to ROS is already available, the request is sent immediately.
@@ -240,7 +240,7 @@ def call_sync_service(self, message, timeout):
240240
return self.blocking_call_from_thread(get_call_results, timeout)
241241

242242
def call_async_service(self, message, callback, errback):
243-
"""Send a service request to the ROS Master once the connection is established.
243+
"""Send a service request to ROS once the connection is established.
244244
245245
If a connection to ROS is already available, the request is sent immediately.
246246

0 commit comments

Comments
 (0)