Skip to content

Commit cb630af

Browse files
authored
Bump main to gz-transport 15.0.0~pre1 (#549)
* Bump main to gz-transport 15.0.0~pre1 --------- Signed-off-by: Carlos Agüero <[email protected]>
1 parent 9e999e6 commit cb630af

19 files changed

+62
-58
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
33
#============================================================================
44
# Initialize the project
55
#============================================================================
6-
project(gz-transport14 VERSION 14.0.0)
6+
project(gz-transport15 VERSION 15.0.0)
77

88
#============================================================================
99
# Find gz-cmake
@@ -33,7 +33,7 @@ cmake_dependent_option(USE_DIST_PACKAGES_FOR_PYTHON
3333
set(CMAKE_CXX_STANDARD 17)
3434
set(CMAKE_CXX_STANDARD_REQUIRED ON)
3535

36-
gz_configure_project(VERSION_SUFFIX)
36+
gz_configure_project(VERSION_SUFFIX pre1)
3737

3838
#============================================================================
3939
# Set project-specific options

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Gazebo Transport 15.X
2+
3+
### Gazebo Transport 15.0.0 (20XX-XX-XX)
4+
15
## Gazebo Transport 14.X
26

37
### Gazebo Transport 14.0.0 (2024-09-25)

example/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
33
project(gz-transport-examples)
44

55
# Find the Gazebo Transport library
6-
find_package(gz-transport14 QUIET REQUIRED OPTIONAL_COMPONENTS log)
7-
set(GZ_TRANSPORT_VER ${gz-transport14_VERSION_MAJOR})
6+
find_package(gz-transport15 QUIET REQUIRED OPTIONAL_COMPONENTS log)
7+
set(GZ_TRANSPORT_VER ${gz-transport15_VERSION_MAJOR})
88

99
if (EXISTS "${CMAKE_SOURCE_DIR}/msgs/")
1010
# Message generation. Only required when using custom Protobuf messages.

package.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="2">
4-
<name>gz-transport14</name>
5-
<version>14.0.0</version>
4+
<name>gz-transport15</name>
5+
<version>15.0.0</version>
66
<description>Gazebo Transport: Provides fast and efficient asynchronous message passing, services, and data logging.</description>
77
<maintainer email="[email protected]">Carlos Agüero</maintainer>
88
<license>Apache License 2.0</license>

python/examples/data_race_with_mutex.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
from gz.msgs11.vector3d_pb2 import Vector3d
17-
from gz.transport14 import Node
17+
from gz.transport15 import Node
1818

1919
from threading import Lock
2020
import time

python/examples/data_race_without_mutex.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
from gz.msgs11.vector3d_pb2 import Vector3d
17-
from gz.transport14 import Node
17+
from gz.transport15 import Node
1818

1919
import time
2020

python/examples/publisher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#! [complete]
1717
from gz.msgs11.stringmsg_pb2 import StringMsg
1818
from gz.msgs11.vector3d_pb2 import Vector3d
19-
from gz.transport14 import Node
19+
from gz.transport15 import Node
2020

2121
import time
2222

python/examples/requester.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#! [complete]
1717
from gz.msgs11.stringmsg_pb2 import StringMsg
18-
from gz.transport14 import Node
18+
from gz.transport15 import Node
1919

2020
def main():
2121
node = Node()

python/examples/subscriber.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#! [complete]
1717
from gz.msgs11.stringmsg_pb2 import StringMsg
1818
from gz.msgs11.vector3d_pb2 import Vector3d
19-
from gz.transport14 import Node
19+
from gz.transport15 import Node
2020

2121
import time
2222

python/src/transport/_gz_transport_pybind11.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ PYBIND11_MODULE(BINDINGS_MODULE_NAME, m) {
323323
.def("has_connections",
324324
&gz::transport::Node::Publisher::HasConnections,
325325
"Return true if this publisher has subscribers");
326-
} // gz-transport14 module
326+
} // gz-transport15 module
327327

328328
} // python
329329
} // transport

python/test/options_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from gz.msgs11.stringmsg_pb2 import StringMsg
2-
from gz.transport14 import Node, AdvertiseMessageOptions, SubscribeOptions, NodeOptions
2+
from gz.transport15 import Node, AdvertiseMessageOptions, SubscribeOptions, NodeOptions
33

44
import unittest
55

python/test/pubSub_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from gz.msgs11.stringmsg_pb2 import StringMsg
1717
from gz.msgs11.vector3d_pb2 import Vector3d
18-
from gz.transport14 import Node, AdvertiseMessageOptions, SubscribeOptions, TopicStatistics
18+
from gz.transport15 import Node, AdvertiseMessageOptions, SubscribeOptions, TopicStatistics
1919

2020
from threading import Lock
2121

python/test/requester_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from gz.msgs11.int32_pb2 import Int32
1717
from gz.msgs11.stringmsg_pb2 import StringMsg
18-
from gz.transport14 import Node
18+
from gz.transport15 import Node
1919

2020
import os
2121
import subprocess

tutorials/04_messages.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cd ~/gz_transport_tutorial
1717

1818
## Publisher
1919

20-
Download the [publisher.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/publisher.cc) file within the `gz_transport_tutorial`
20+
Download the [publisher.cc](https://github.com/gazebosim/gz-transport/raw/main/example/publisher.cc) file within the `gz_transport_tutorial`
2121
folder and open it with your favorite editor:
2222

2323
\snippet example/publisher.cc complete
@@ -76,7 +76,7 @@ The method *Publish()* sends a message to all the subscribers.
7676

7777
## Subscriber
7878

79-
Download the [subscriber.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/subscriber.cc)
79+
Download the [subscriber.cc](https://github.com/gazebosim/gz-transport/raw/main/example/subscriber.cc)
8080
file into the `gz_transport_tutorial` folder and open it with your favorite editor:
8181

8282
\snippet example/subscriber.cc complete
@@ -126,7 +126,7 @@ until you hit *CTRL-C*. Note that this function captures the *SIGINT* and
126126

127127
## Building the code
128128

129-
Download the [CMakeLists.txt](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/CMakeLists.txt) file within the `gz_transport_tutorial` folder.
129+
Download the [CMakeLists.txt](https://github.com/gazebosim/gz-transport/raw/main/example/CMakeLists.txt) file within the `gz_transport_tutorial` folder.
130130

131131
Once you have all your files, go ahead and create a `build/` directory within
132132
the `gz_transport_tutorial` directory.
@@ -287,7 +287,7 @@ between Gazebo Transport and another protocol or if you want to just print the
287287
content of a generic protobuf message using `DebugString()`, among other use
288288
cases.
289289

290-
Download the [subscriber_generic.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/subscriber_generic.cc) file within the `gz_transport_tutorial` folder and open it with your favorite editor:
290+
Download the [subscriber_generic.cc](https://github.com/gazebosim/gz-transport/raw/main/example/subscriber_generic.cc) file within the `gz_transport_tutorial` folder and open it with your favorite editor:
291291

292292
```{.cpp}
293293
#include <google/protobuf/message.h>
@@ -416,12 +416,12 @@ often the integration of the message generation into the build system of your
416416
project. Next, you can find an example of a publisher and subscriber using a
417417
custom Protobuf message integrated with CMake.
418418

419-
Download the [publisher_custom_msg.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/publisher_custom_msg.cc)
420-
and the [subscriber_custom_msg.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/subscriber_custom_msg.cc)
419+
Download the [publisher_custom_msg.cc](https://github.com/gazebosim/gz-transport/raw/main/example/publisher_custom_msg.cc)
420+
and the [subscriber_custom_msg.cc](https://github.com/gazebosim/gz-transport/raw/main/example/subscriber_custom_msg.cc)
421421
files within the `gz_transport_tutorial`. Then, create a `msgs` folder and
422-
download the [stringmsg.proto](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/msgs/stringmsg.proto)
423-
and the [CMakeLists.txt](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/msgs/CMakeLists.txt)
424-
files within the `msgs` folder. Finally, we'll need the main [CMakeLists.txt](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/CMakeLists.txt)
422+
download the [stringmsg.proto](https://github.com/gazebosim/gz-transport/raw/main/example/msgs/stringmsg.proto)
423+
and the [CMakeLists.txt](https://github.com/gazebosim/gz-transport/raw/main/example/msgs/CMakeLists.txt)
424+
files within the `msgs` folder. Finally, we'll need the main [CMakeLists.txt](https://github.com/gazebosim/gz-transport/raw/main/example/CMakeLists.txt)
425425
file. You should have this file from the previous examples. Otherwise,
426426
download and place it within the `gz_transport_tutorial` folder.
427427

tutorials/05_services.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cd ~/gz_transport_tutorial
2525

2626
## Responser
2727

28-
Download the [responser.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/responser.cc) file within the ``gz_transport_tutorial``
28+
Download the [responser.cc](https://github.com/gazebosim/gz-transport/raw/main/example/responser.cc) file within the ``gz_transport_tutorial``
2929
folder and open it with your favorite editor:
3030

3131
```{.cpp}
@@ -133,7 +133,7 @@ until you hit *CTRL-C*. Note that this function captures the *SIGINT* and
133133

134134
## Synchronous requester
135135

136-
Download the [requester.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/requester.cc) file within the ``gz_transport_tutorial``
136+
Download the [requester.cc](https://github.com/gazebosim/gz-transport/raw/main/example/requester.cc) file within the ``gz_transport_tutorial``
137137
folder and open it with your favorite editor:
138138

139139
```{.cpp}
@@ -228,7 +228,7 @@ message.
228228

229229
## Asynchronous requester
230230

231-
Download the [requester_async.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/requester_async.cc) file within the
231+
Download the [requester_async.cc](https://github.com/gazebosim/gz-transport/raw/main/example/requester_async.cc) file within the
232232
``gz_transport_tutorial`` folder and open it with your favorite editor:
233233

234234
```{.cpp}
@@ -314,7 +314,7 @@ oneway service to process service requests without sending back responses.
314314
Oneway services don't accept any output parameters nor the requests have to wait
315315
for the response.
316316

317-
Download the [responser_oneway.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/responser_oneway.cc) file within the
317+
Download the [responser_oneway.cc](https://github.com/gazebosim/gz-transport/raw/main/example/responser_oneway.cc) file within the
318318
``gz_transport_tutorial`` folder and open it with your favorite editor:
319319

320320
```{.cpp}
@@ -389,7 +389,7 @@ This case is similar to the oneway service provider. This code can be used for
389389
requesting a service that does not need a response back. We don't need any
390390
output parameters in this case nor we have to wait for the response.
391391

392-
Download the [requester_oneway.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/requester_oneway.cc) file within the
392+
Download the [requester_oneway.cc](https://github.com/gazebosim/gz-transport/raw/main/example/requester_oneway.cc) file within the
393393
``gz_transport_tutorial`` folder and open it with your favorite editor:
394394

395395
```{.cpp}
@@ -454,7 +454,7 @@ request was already published.
454454
Sometimes we want to receive some result but don't have any input parameter to
455455
send.
456456

457-
Download the [responser_no_input.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/responser_no_input.cc)
457+
Download the [responser_no_input.cc](https://github.com/gazebosim/gz-transport/raw/main/example/responser_no_input.cc)
458458
file within the ``gz_transport_tutorial`` folder and open it with your
459459
favorite editor:
460460

@@ -534,7 +534,7 @@ service requests.
534534
This case is similar to the service without input parameter. We don't send any
535535
request.
536536

537-
Download the [requester_no_input.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/requester_no_input.cc)
537+
Download the [requester_no_input.cc](https://github.com/gazebosim/gz-transport/raw/main/example/requester_no_input.cc)
538538
file within the ``gz_transport_tutorial`` folder and open it with your
539539
favorite editor:
540540

@@ -577,14 +577,14 @@ request timed out or reached the service provider and ``result`` shows if the
577577
service was successfully executed.
578578

579579
We also have the async version for service request without input. You should
580-
download [requester_async_no_input.cc](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/requester_async_no_input.cc)
580+
download [requester_async_no_input.cc](https://github.com/gazebosim/gz-transport/raw/main/example/requester_async_no_input.cc)
581581
file within the ``gz_transport_tutorial`` folder.
582582

583583
## Building the code
584584

585-
Download the [CMakeLists.txt](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/CMakeLists.txt) file
585+
Download the [CMakeLists.txt](https://github.com/gazebosim/gz-transport/raw/main/example/CMakeLists.txt) file
586586
within the ``gz_transport_tutorial`` folder. Then, create a `msgs` directory
587-
and download [CMakeLists.txt](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/msgs/CMakeLists.txt) and [stringmsg.proto](https://github.com/gazebosim/gz-transport/raw/gz-transport14/example/msgs/stringmsg.proto) inside the
587+
and download [CMakeLists.txt](https://github.com/gazebosim/gz-transport/raw/main/example/msgs/CMakeLists.txt) and [stringmsg.proto](https://github.com/gazebosim/gz-transport/raw/main/example/msgs/stringmsg.proto) inside the
588588
``msgs`` directory.
589589

590590
Once you have all your files, go ahead and create a ``build/`` folder within

tutorials/06_python_support.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ In this tutorial, we are going to show the functionalities implemented in Python
99
These features are brought up by creating bindings from the C++ implementation
1010
using pybind11. It is important to note that not all of C++ features are available
1111
yet, on this tutorial we will go over the most relevant features. For more information,
12-
refer to the [__init__.py](https://github.com/gazebosim/gz-transport/blob/gz-transport14/python/src/__init__.py)
12+
refer to the [__init__.py](https://github.com/gazebosim/gz-transport/blob/main/python/src/__init__.py)
1313
file which is a wrapper for all the bindings.
1414

1515
For this tutorial, we will create two nodes that communicate via messages. One node
@@ -24,7 +24,7 @@ cd ~/gz_transport_tutorial
2424

2525
## Publisher
2626

27-
Download the [publisher.py](https://github.com/gazebosim/gz-transport/blob/gz-transport14/python/examples/publisher.py) file within the `gz_transport_tutorial`
27+
Download the [publisher.py](https://github.com/gazebosim/gz-transport/blob/main/python/examples/publisher.py) file within the `gz_transport_tutorial`
2828
folder and open it with your favorite editor:
2929

3030
\snippet python/examples/publisher.py complete
@@ -34,10 +34,10 @@ folder and open it with your favorite editor:
3434
```{.py}
3535
from gz.msgs11.stringmsg_pb2 import StringMsg
3636
from gz.msgs11.vector3d_pb2 import Vector3d
37-
from gz.transport14 import Node
37+
from gz.transport15 import Node
3838
```
3939

40-
The library `gz.transport14` contains all the Gazebo Transport elements that can be
40+
The library `gz.transport15` contains all the Gazebo Transport elements that can be
4141
used in Python. The final API we will use is contained inside the class `Node`.
4242

4343
The lines `from gz.msgs11.stringmsg_pb2 import StringMsg` and `from gz.msgs11.vector3d_pb2 import Vector3d`
@@ -89,7 +89,7 @@ each topic. The method *publish()* sends a message to all the subscribers.
8989

9090
## Subscriber
9191

92-
Download the [subscriber.py](https://github.com/gazebosim/gz-transport/blob/gz-transport14/python/examples/subscriber.py)
92+
Download the [subscriber.py](https://github.com/gazebosim/gz-transport/blob/main/python/examples/subscriber.py)
9393
file into the `gz_transport_tutorial` folder and open it with your favorite editor:
9494

9595
\snippet python/examples/subscriber.py complete
@@ -99,10 +99,10 @@ file into the `gz_transport_tutorial` folder and open it with your favorite edit
9999
```{.py}
100100
from gz.msgs11.stringmsg_pb2 import StringMsg
101101
from gz.msgs11.vector3d_pb2 import Vector3d
102-
from gz.transport14 import Node
102+
from gz.transport15 import Node
103103
```
104104

105-
Just as before, we are importing the `Node` class from the `gz.transport14` library
105+
Just as before, we are importing the `Node` class from the `gz.transport15` library
106106
and the generated code for the `StringMsg` and `Vector3d` protobuf messages.
107107

108108
```{.py}
@@ -240,9 +240,9 @@ in several places (publisher and subscribers).
240240

241241
We developed a couple of examples that demonstrate this particular issue. Take
242242
a look at a publisher and subscriber (whithin the same node) that have race
243-
conditions triggered in the [data_race_without_mutex.py](https://github.com/gazebosim/gz-transport/blob/gz-transport14/python/examples/data_race_without_mutex.py) file. The proposed solution to this
243+
conditions triggered in the [data_race_without_mutex.py](https://github.com/gazebosim/gz-transport/blob/main/python/examples/data_race_without_mutex.py) file. The proposed solution to this
244244
issue is to use the `threading` library, you can see the same example with a mutex
245-
in the [data_race_with_mutex.py](https://github.com/gazebosim/gz-transport/blob/gz-transport14/python/examples/data_race_with_mutex.py) file.
245+
in the [data_race_with_mutex.py](https://github.com/gazebosim/gz-transport/blob/main/python/examples/data_race_with_mutex.py) file.
246246

247247
You can run any of those examples by just doing the following in a terminal:
248248
```{.sh}
@@ -266,7 +266,7 @@ We can declare the throttling option using the following code :
266266

267267
```{.py}
268268
from gz.msgs11.stringmsg_pb2 import StringMsg
269-
from gz.transport14 import Node, AdvertiseMessageOptions
269+
from gz.transport15 import Node, AdvertiseMessageOptions
270270
271271
# Create a transport node and advertise a topic with throttling enabled.
272272
node = Node()
@@ -310,7 +310,7 @@ We can declare the throttling option using the following code :
310310

311311
```{.py}
312312
from gz.msgs11.stringmsg_pb2 import StringMsg
313-
from gz.transport14 import Node, SubscribeOptions
313+
from gz.transport15 import Node, SubscribeOptions
314314
315315
def stringmsg_cb(msg: StringMsg):
316316
print("Received StringMsg: [{}]".format(msg.data))
@@ -350,7 +350,7 @@ topic without having to modify the publisher and create a new log.
350350
We can declare the topic remapping option using the following code:
351351

352352
```{.py}
353-
from gz.transport14 import Node, NodeOptions
353+
from gz.transport15 import Node, NodeOptions
354354
355355
# Create a transport node and remap a topic.
356356
nodeOpts = NodeOptions()
@@ -380,7 +380,7 @@ The command `gz log playback` also supports the notion of topic remapping. Run
380380

381381
## Service Requester
382382

383-
Download the [requester.py](https://github.com/gazebosim/gz-transport/blob/gz-transport14/python/examples/requester.py)
383+
Download the [requester.py](https://github.com/gazebosim/gz-transport/blob/main/python/examples/requester.py)
384384
file into the `gz_transport_tutorial` folder and open it with your favorite editor:
385385

386386
\snippet python/examples/requester.py complete
@@ -389,10 +389,10 @@ file into the `gz_transport_tutorial` folder and open it with your favorite edit
389389

390390
```{.py}
391391
from gz.msgs11.stringmsg_pb2 import StringMsg
392-
from gz.transport14 import Node
392+
from gz.transport15 import Node
393393
```
394394

395-
Just as before, we are importing the `Node` class from the `gz.transport14`
395+
Just as before, we are importing the `Node` class from the `gz.transport15`
396396
library and the generated code for the `StringMsg` protobuf message.
397397

398398
```{.py}
@@ -421,7 +421,7 @@ result and response of the request in some variables and printing them out.
421421

422422
Unfortunately, this feature is not available on Python at the moment. However,
423423
we can use a service responser created in C++ and make a request to it from a
424-
code in Python. Taking that into account, we will use the [response.cc](https://github.com/gazebosim/gz-transport/blob/gz-transport14/example/responser.cc) file as the service responser.
424+
code in Python. Taking that into account, we will use the [response.cc](https://github.com/gazebosim/gz-transport/blob/main/example/responser.cc) file as the service responser.
425425

426426
## Running the examples
427427

tutorials/08_relay.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ install Docker following any of the existing guides available
2525
([here](https://docs.docker.com/get-docker/)'s one).
2626

2727
We're going to build a Docker image and run it inside your host computer.
28-
Download the [build.bash](https://github.com/gazebosim/gz-transport/raw/gz-transport14/docker/build.bash), [run.bash](https://github.com/gazebosim/gz-transport/raw/gz-transport14/docker/run.bash) and
29-
[Dockerfile](https://github.com/gazebosim/gz-transport/raw/gz-transport14/docker/gz-transport/Dockerfile) files.
28+
Download the [build.bash](https://github.com/gazebosim/gz-transport/raw/main/docker/build.bash), [run.bash](https://github.com/gazebosim/gz-transport/raw/main/docker/run.bash) and
29+
[Dockerfile](https://github.com/gazebosim/gz-transport/raw/main/docker/gz-transport/Dockerfile) files.
3030

3131
```{.sh}
32-
wget https://github.com/gazebosim/gz-transport/raw/gz-transport14/docker/gz-transport/Dockerfile -O Dockerfile
32+
wget https://github.com/gazebosim/gz-transport/raw/main/docker/gz-transport/Dockerfile -O Dockerfile
3333
```
3434

3535
Now, it's time to build the Docker image:

0 commit comments

Comments
 (0)