diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7aa80d0bd..705db4f35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v2 - name: Compile and test id: ci - uses: ignition-tooling/action-ignition-ci@master + uses: ignition-tooling/action-ignition-ci@bionic with: codecov-token: ${{ secrets.CODECOV_TOKEN }} focal-ci: diff --git a/README.md b/README.md index 18588bb6c..a8058a7db 100644 --- a/README.md +++ b/README.md @@ -113,12 +113,12 @@ ign-transport # Contributing Please see -[CONTRIBUTING.md](https://github.com/ignitionrobotics/ign-gazebo/blob/master/CONTRIBUTING.md). +[CONTRIBUTING.md](https://github.com/ignitionrobotics/ign-gazebo/blob/main/CONTRIBUTING.md). # Code of Conduct Please see -[CODE_OF_CONDUCT.md](https://github.com/ignitionrobotics/ign-gazebo/blob/master/CODE_OF_CONDUCT.md). +[CODE_OF_CONDUCT.md](https://github.com/ignitionrobotics/ign-gazebo/blob/main/CODE_OF_CONDUCT.md). # Versioning @@ -131,5 +131,5 @@ version and release information. # License This library is licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0). -See also the [LICENSE](https://github.com/ignitionrobotics/ign-transport/raw/master/LICENSE) +See also the [LICENSE](https://github.com/ignitionrobotics/ign-transport/raw/main/LICENSE) file. diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index e4038b317..a0bb79541 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -30,7 +30,7 @@ pipelines: libignition-msgs5-dev libignition-tools-dev # # Install ign-msgs - # - git clone http://github.com/ignitionrobotics/ign-msgs -b master + # - git clone http://github.com/ignitionrobotics/ign-msgs -b main # - cd ign-msgs # - mkdir build # - cd build diff --git a/tutorials/02_installation.md b/tutorials/02_installation.md index 93090926b..3ea6ca0e4 100644 --- a/tutorials/02_installation.md +++ b/tutorials/02_installation.md @@ -86,7 +86,7 @@ Ubuntu distribution equal to 18.04 (Bionic) or newer. Make sure you have removed the Ubuntu pre-compiled binaries before installing from source: ``` -sudo apt-get remove libignition-transport8-dev +sudo apt-get remove libignition-transport9-dev ``` Install prerequisites. A clean Ubuntu system will need: diff --git a/tutorials/04_messages.md b/tutorials/04_messages.md index 4af1cc643..4822c7dd2 100644 --- a/tutorials/04_messages.md +++ b/tutorials/04_messages.md @@ -17,7 +17,7 @@ cd ~/ign_transport_tutorial ## Publisher -Download the [publisher.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/publisher.cc) file within the `ign_transport_tutorial` +Download the [publisher.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/publisher.cc) file within the `ign_transport_tutorial` folder and open it with your favorite editor: ```{.cpp} @@ -132,7 +132,7 @@ The method *Publish()* sends a message to all the subscribers. ## Subscriber -Download the [subscriber.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/subscriber.cc) +Download the [subscriber.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/subscriber.cc) file into the `ign_transport_tutorial` folder and open it with your favorite editor: ```{.cpp} @@ -212,7 +212,7 @@ until you hit *CTRL-C*. Note that this function captures the *SIGINT* and ## Building the code -Download the [CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/master/example/CMakeLists.txt) file within the `ign_transport_tutorial` folder. +Download the [CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/main/example/CMakeLists.txt) file within the `ign_transport_tutorial` folder. Once you have all your files, go ahead and create a `build/` directory within the `ign_transport_tutorial` directory. @@ -347,7 +347,7 @@ between Ignition Transport and another protocol or if you want to just print the content of a generic protobuf message using `DebugString()`, among other use cases. -Download the [subscriber_generic.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/subscriber_generic.cc) file within the `ign_transport_tutorial` folder and open it with your favorite editor: +Download the [subscriber_generic.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/subscriber_generic.cc) file within the `ign_transport_tutorial` folder and open it with your favorite editor: ```{.cpp} #include @@ -463,12 +463,12 @@ often the integration of the message generation into the build system of your project. Next, you can find an example of a publisher and subscriber using a custom Protobuf message integrated with CMake. -Download the [publisher_custom_msg.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/publisher_custom_msg.cc) -and the [subscriber_custom_msg.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/subscriber_custom_msg.cc) +Download the [publisher_custom_msg.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/publisher_custom_msg.cc) +and the [subscriber_custom_msg.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/subscriber_custom_msg.cc) files within the `ign_transport_tutorial`. Then, create a `msgs` folder and -download the [stringmsg.proto](https://github.com/ignitionrobotics/ign-transport/raw/master/example/msgs/stringmsg.proto) -and the [CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/master/example/msgs/CMakeLists.txt) -files within the `msgs` folder. Finally, we'll need the main [CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/master/example/CMakeLists.txt) +download the [stringmsg.proto](https://github.com/ignitionrobotics/ign-transport/raw/main/example/msgs/stringmsg.proto) +and the [CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/main/example/msgs/CMakeLists.txt) +files within the `msgs` folder. Finally, we'll need the main [CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/main/example/CMakeLists.txt) file. You should have this file from the previous examples. Otherwise, download and place it within the `ign_transport_tutorial` folder. diff --git a/tutorials/05_services.md b/tutorials/05_services.md index cd345d343..406511819 100644 --- a/tutorials/05_services.md +++ b/tutorials/05_services.md @@ -25,7 +25,7 @@ cd ~/ign_transport_tutorial ## Responser -Download the [responser.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/responser.cc) file within the ``ign_transport_tutorial`` +Download the [responser.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/responser.cc) file within the ``ign_transport_tutorial`` folder and open it with your favorite editor: ```{.cpp} @@ -133,7 +133,7 @@ until you hit *CTRL-C*. Note that this function captures the *SIGINT* and ## Synchronous requester -Download the [requester.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/requester.cc) file within the ``ign_transport_tutorial`` +Download the [requester.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/requester.cc) file within the ``ign_transport_tutorial`` folder and open it with your favorite editor: ```{.cpp} @@ -228,7 +228,7 @@ message. ## Asynchronous requester -Download the [requester_async.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/requester_async.cc) file within the +Download the [requester_async.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/requester_async.cc) file within the ``ign_transport_tutorial`` folder and open it with your favorite editor: ```{.cpp} @@ -314,7 +314,7 @@ oneway service to process service requests without sending back responses. Oneway services don't accept any output parameters nor the requests have to wait for the response. -Download the [responser_oneway.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/responser_oneway.cc) file within the +Download the [responser_oneway.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/responser_oneway.cc) file within the ``ign_transport_tutorial`` folder and open it with your favorite editor: ```{.cpp} @@ -389,7 +389,7 @@ This case is similar to the oneway service provider. This code can be used for requesting a service that does not need a response back. We don't need any output parameters in this case nor we have to wait for the response. -Download the [requester_oneway.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/requester_oneway.cc) file within the +Download the [requester_oneway.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/requester_oneway.cc) file within the ``ign_transport_tutorial`` folder and open it with your favorite editor: ```{.cpp} @@ -447,7 +447,7 @@ your service request is handled. Sometimes we want to receive some result but don't have any input parameter to send. -Download the [responser_no_input.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/responser_no_input.cc) +Download the [responser_no_input.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/responser_no_input.cc) file within the ``ign_transport_tutorial`` folder and open it with your favorite editor: @@ -527,7 +527,7 @@ service requests. This case is similar to the service without input parameter. We don't send any request. -Download the [requester_no_input.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/requester_no_input.cc) +Download the [requester_no_input.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/requester_no_input.cc) file within the ``ign_transport_tutorial`` folder and open it with your favorite editor: @@ -570,14 +570,14 @@ request timed out or reached the service provider and ``result`` shows if the service was successfully executed. We also have the async version for service request without input. You should -download [requester_async_no_input.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/requester_async_no_input.cc) +download [requester_async_no_input.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/requester_async_no_input.cc) file within the ``ign_transport_tutorial`` folder. ## Building the code -Download the [CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/master/example/CMakeLists.txt) file +Download the [CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/main/example/CMakeLists.txt) file within the ``ign_transport_tutorial`` folder. Then, download -[CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/master/example/msgs/CMakeLists.txt) and [stringmsg.proto](https://github.com/ignitionrobotics/ign-transport/raw/master/example/msgs/stringmsg.proto) inside the +[CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/main/example/msgs/CMakeLists.txt) and [stringmsg.proto](https://github.com/ignitionrobotics/ign-transport/raw/main/example/msgs/stringmsg.proto) inside the ``msgs`` directory. Once you have all your files, go ahead and create a ``build/`` folder within diff --git a/tutorials/07_relay.md b/tutorials/07_relay.md index fd11de157..79ac8aac3 100644 --- a/tutorials/07_relay.md +++ b/tutorials/07_relay.md @@ -25,13 +25,13 @@ install Docker following any of the existing guides available ([here](https://docs.docker.com/get-docker/)'s one). We're going to build a Docker image and run it inside your host computer. -Download the [build.bash](https://github.com/ignitionrobotics/ign-transport/raw/master/docker/build.bash), [run.bash](https://github.com/ignitionrobotics/ign-transport/raw/master/docker/run.bash) and -[Dockerfile](https://github.com/ignitionrobotics/ign-transport/raw/master/docker/ign-transport/Dockerfile) files. +Download the [build.bash](https://github.com/ignitionrobotics/ign-transport/raw/main/docker/build.bash), [run.bash](https://github.com/ignitionrobotics/ign-transport/raw/main/docker/run.bash) and +[Dockerfile](https://github.com/ignitionrobotics/ign-transport/raw/main/docker/ign-transport/Dockerfile) files. ```{.sh} -wget https://github.com/ignitionrobotics/ign-transport/raw/master/docker/build.bash -wget https://github.com/ignitionrobotics/ign-transport/raw/master/docker/run.bash -wget https://github.com/ignitionrobotics/ign-transport/raw/master/docker/ign-transport/Dockerfile -O ign-transport/Dockerfile +wget https://github.com/ignitionrobotics/ign-transport/raw/main/docker/build.bash +wget https://github.com/ignitionrobotics/ign-transport/raw/main/docker/run.bash +wget https://github.com/ignitionrobotics/ign-transport/raw/main/docker/ign-transport/Dockerfile -O ign-transport/Dockerfile chmod +x build.bash run.bash ``` diff --git a/tutorials/10_logging.md b/tutorials/10_logging.md index 63b08f788..c87b70b16 100644 --- a/tutorials/10_logging.md +++ b/tutorials/10_logging.md @@ -25,7 +25,7 @@ cd ~/ign_transport_tutorial ## Record -Download the [record.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/record.cc) +Download the [record.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/record.cc) file within the `ign_transport_tutorial` folder and open it with your favorite editor: ```{.cpp} @@ -126,7 +126,7 @@ stops the log recording as expected. ## Play back -Download the [playback.cc](https://github.com/ignitionrobotics/ign-transport/raw/master/example/playback.cc) +Download the [playback.cc](https://github.com/ignitionrobotics/ign-transport/raw/main/example/playback.cc) file within the `ign_transport_tutorial` folder and open it with your favorite editor: @@ -215,7 +215,7 @@ thread until all messages have been published. ## Building the code -Download the [CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/master/example/CMakeLists.txt) +Download the [CMakeLists.txt](https://github.com/ignitionrobotics/ign-transport/raw/main/example/CMakeLists.txt) file within the `ign_transport_tutorial` folder. Once you have all your files, go ahead and create a `build/` directory within diff --git a/tutorials/23_topic_statistics.md b/tutorials/23_topic_statistics.md index 91d637095..94e8ae6fd 100644 --- a/tutorials/23_topic_statistics.md +++ b/tutorials/23_topic_statistics.md @@ -44,7 +44,7 @@ if (!node.EnableStats(topic, true)) } ``` -A complete example can be found in the [subscriber_stats example program](https://github.com/ignitionrobotics/ign-transport/blob/ign-transport8/example/subscriber_stats.cc). +A complete example can be found in the [subscriber_stats example program](https://github.com/ignitionrobotics/ign-transport/blob/ign-transport9/example/subscriber_stats.cc). With both `IGN_TRANSPORT_TOPIC_STATISTICS` set to `1` and a node enabling topic statistics, then you will be able to echo statistic