Commit Graph

34 Commits

Author SHA1 Message Date
Ricardo González bb23a278fc
Increase cmake minimum required (#335)
* Refs #16427. Increase cmake minimum required

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>

* Refs #16427. Update googletest

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>

* Fix tests

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Fix tests

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
2022-12-08 11:54:19 +01:00
G.A. vd. Hoorn 39eac9448d
examples: explicitly set language to C (#257)
CMake will default to enabling C and C++ if no languages are specified in the project(..) call.

Micro-XRCE-DDS-Client is a C-only project. Avoid enabling C++.

Signed-off-by: gavanderhoorn <g.a.vanderhoorn@tudelft.nl>
2021-07-06 07:56:21 +02:00
Pablo Garrido 5124991014
Update Quality Level 1 (#210)
* Initial

* Update

* Update

* Uncrustify code

Using https://github.com/eProsima/cpp-style

* Update quality

* Update

* Update

* Apply suggestions from code review

Co-authored-by: FranFin <58737168+FranFin@users.noreply.github.com>

Co-authored-by: FranFin <58737168+FranFin@users.noreply.github.com>
2021-03-23 12:16:24 +01:00
Pablo Garrido 291d939c9e
Add best effort examples and remove client.config references (#197)
* Add best effort publisher example

* Add Best effort subscriber

* Add examples to CMake

* Remove references to client.config

* Fix

* Update examples/PublishHelloWorldBestEffort/README.md

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update examples/PublishHelloWorldBestEffort/README.md

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Update examples/SubscribeHelloWorldBestEffort/README.md

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>

* Auto stash before merge of "feature/add_be_examples" and "origin/feature/add_be_examples"

* Address changes

Co-authored-by: Jose Antonio Moral <joseantoniomoralparras@gmail.com>
2021-02-23 08:29:13 +01:00
Pablo Garrido 518b56fa40
Refactor platforms usage (#183)
* Initial

* Fix windows

* Update
2021-02-08 09:14:45 +01:00
Julián Bermúdez Ortega 7c50dade71
Feature/config (#155)
* Change configuration approach.

* Rename PROFILE_XXX_TRANSPORT by UCLIENT_PROFILE_XXX.

* Add Zephyr platform support in CMake.

* Modify transport source selection in CMakeLists.txt.
2020-05-25 12:50:00 +02:00
Julián Bermúdez Ortega 4dfeee1c92
Examples installation (#151)
* Modify example installation.

* Increase patch version number.

* Add Dockerfile and .dockeringore files. (#152)

* Fix -Wformat-overflow warning in log.c.
2020-05-19 08:16:00 +02:00
julibert 380791e043
Pre-release 1.2.1 2020-05-04 10:07:02 +02:00
Julián Bermúdez Ortega 68385f84a8
Fix fragmentation [7903] (#142)
* Add uxrReliableStream struct.

* Refactor reliable stream's buffers management.

* Update uxr_reset_output_reliable_stream function.

* Remove frament_offset param from uxr_reset_output_reliable_stream function.

* Fix CommonReliableStream tests.

* Fix InputReliableStream tests.

* Fix OutputReliableStream tests.

* Adapt to Micro-CDR initialization functions.

* Change output fragmentation approach.

* Fix output alignment.

* Fix input alignment.

* Modify read_format_data function.

* Modify read_format_data function.

* Modify uxrOnTopicFunc signature.

* Modify uxrOnReplyFunc and uxrOnRequestFunc signature.

* Refactor on_full_input_buffer function.

* Fix examples according to new callback signatures.

* Fix read_format_data bug.

* Fix Windows warnings.

* Fix discovery locator sequence lookup.

* Modify default values for connections attends and internal in client.config file.

* Apply suggestions from code review

Co-Authored-By: Pablo Garrido <pablogs9@gmail.com>

* Attend PR review comments.

Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
2020-04-07 16:42:29 +02:00
Julián Bermúdez Ortega bfcaf92663 Remove non-existent profiles at examples documentation. (#126) 2020-01-24 11:08:03 +01:00
Borja Outerelo e052f6cf7e
Merge branch 'master' into develop 2019-12-17 08:08:22 +01:00
Borja Outerelo 4fb42df6ba Hotfix/examples (#117)
* Allow single test build.

* Fix message errors.
2019-12-07 20:14:51 +01:00
Julián Bermúdez Ortega 6e05311441 IPv6 [5367] (#99)
* Refs #5371. Move UDP and TCP transport under IP domain.

* Refs #5371. Update transport documentation comments.

* Refs #5371. Fix IPv6 address management and add UDP/IPv6 support to ShapeDemo example.

* Refs #5371. Fix ShapeDemo example for IPv6 support.

* Refs #5371. Modify get address function in UDP transport.

* Refs #5371. Simplify cmake sources handling.

* Refs #5371. Add ip.h file.

* Refs #5371. Add UDP IPv4 functions.

* Refs #5371. Add IPv6 in UDP transport for Linux.

* Refs #5371. Add IPv6 in TCP transport for Linux.

* Refs #5892. Modify transport init function in UDP and TCP.

* Refs #5892. Fix Windows transport for IPv6.

* Refs #5892. Fix IPv6 Windows errors.

* Refs #5367. Update version to 1.2.0.

* Refs #5367. Fix Windows warnings.
2019-11-21 08:19:28 +01:00
Luis Enrique Muñoz Martín b189ea6480 Core unitary tests [4353] (#67)
* Refs #3712. Removed unused profiles.

* Refs #4308. Added submessage unitary tests.

* Refs #4308. Added object_id unitary tests.

* Refs #4308. Added session_info base test.

* Refs 4308. Completed session_info unitary tests. Warnings not fixed yet.

* Refs #4308. Added create delete message size dependency.

* Refactortization removing unnecesary UXR_ prefixes.

* Refs #4326. Added SeqNum tests.

* Refs #4326. Added Input best effort unitary tests.

* Modified define SEQ_NUM_MAX

* Refs #4326. Added Output best effort unitary tests.

* Refs #4326. Added stream_id unitary test.

* Refs #4326. Added common reliable unitary tests

* Refs #4326. Added Input reliable stream tests.

* Refs #4326. Added half of output reliable stream tests.

* Refs #4326. Added output reliable unitary tests.

* Refs #4326. Added stream storage.

* Refs #4417. Added basic scheme for session unitary tests.

* Added create and delete mock messages.

* Refs #4417. Added session tests.

* Refs #4536. Removed warnings from tests.

* Refs #4536. Fixed valgrind issues.

* Refs #4536. Fixed warnings in windows.

* Added COMPOUND_LITERAL macro.

* Fixed windows errors.

* First test PR review.

* Fix compilation error in SessionInfo test.

* Fix undefined symbol errors.

* Fix Windows warnings.

* Fix Windows compile error.
2019-04-08 11:10:01 +02:00
Luis Enrique Muñoz Martín 70ac238892 Feature/removed profiles (#70)
* Refs #3712. Removed unused profiles.

* Refs #3712. Adapt memory test to removed profiles.
2019-01-24 07:32:33 +01:00
Luis Enrique Muñoz Martín d6ed6808ce Feature/compile sections (#46)
* Added sections flag

* Refs #3585. Flags working

* Added section only when gcc compiler is used.

* Refs #3585. Change the gcc check to be compliant with project.
2018-11-22 10:26:15 +01:00
Luis Enrique Muñoz Martín afeefba28d Feature/mb to ub (#47)
* Refs #3617. Added return errro to ShapesDemo example

* Refs #3623. Modified mb by ub in ucdrBuffer variables.

* Refs #3623. Updated Micro CDR.
2018-11-15 09:01:55 +01:00
Luis Enrique Muñoz Martín ec7a0cc6cc Feature/readme examples (#43)
* Refs #3660. Added Publisher and Subscriber readmes.

* Refs #3660. Added deployment README and fixed bug.

* Refs #3660. Added discovery and shapesdemo readmes

* Fixed MicroCDR thirdparty.

* Refs #3660. Updated with pull request comments.
2018-11-05 15:56:31 +01:00
Julián Bermúdez Ortega 55ffd58028 Transport review (#35)
* Refs #3441. Added API strucure and examples.

* Refs #3446. First approach.

* Refs #3446. Make basic discovery implementation.

* Refs #3446. Added header parse

* Refs #3446. Adapted to rebase develop changes.

* Generic ip initialization udp. Reduce stack at udp connection.

* Completed funtionality of discovery. It is necessary a great build system mode for the transport OS dependent.

* Refs #3446 Added build system.

* Refs #3446. Fixed bug at serialization GET INFO message. Updated log for discovery.

* Refs #3446. Modified array to IP address convertion.

* Slight changes

* Post rebase changes.

* Refs #3447. Updated Cross serlization tests to support discovery messages.

* Refs #3441. Change API.

* Refs #3447. Added integration test. First approach.

* Addapt integration test with new xml representation.

* Refs #3551. Added support for TCP in interaction test.

* Default create/delete session attempts reduced.

* Refs #3447. Modified discovery examples

* Refs #3447. Added ref integration tests.

* Discretize transport by parameter.

* Refs #3447. Updated with changes in develop

* Fixed bug at info cross_serialization test.

* Refs #3447. Updated discovery integration test.

* Modified xml of integration test to fix bug.

* Add reuse addr to tcp transport.

* Refs #3526. Refactor input serial transport.

* Refs #3526. Refactor output serial transport.

* Refs #3526. Added new serial tests.

* Refs #3550. Refactor Serial transport stack and modified transport folders.

* Refs #3526. Simplified Serial transport protocol.

* Refs #3526. Solved rebase conflicts.

* Refs #3550. Refactor TCP transport stack.

* Refs #3550. Refactor UDP transport stack.

* Refs #3550. Moved main Serial transport functions.

* Refs #3550. Added simple error management.

* Updated and fixed deployment example.
2018-10-19 09:25:48 +02:00
Luis Enrique Muñoz Martín 8161a24368 api change: configure -> create at some functions. (#34) 2018-10-17 14:12:14 +02:00
Luis Enrique Muñoz Martín cda00e246f Fixed bug at topic generated code. (#33) 2018-10-17 10:06:00 +02:00
Luis Enrique Muñoz Martín 3d5452762a Renamed write_ to buffer_ functions (#29) 2018-10-15 14:47:45 +02:00
Luis Enrique Muñoz Martín e995971dc2 Added guards to write profile to examples/tests (#25)
* Added guards to write profile to examples/tests

* Fix comments
2018-10-09 07:28:11 +02:00
Luis Enrique Muñoz Martín 12eaea1d16 Renamed project to MicroXRCE-DDS (#23)
* Refs #3451. Updated MicroCDR prefix.

* Refs #3451. Change name micrortps -> microxrce

* Refs #3451. Change prefix mr_ and MR_

* --amend

* Refs #3451. Modified dll export name

* Refs #3451. Change prefix to types.

* Refs #3451. Updated README

* Refs #3451. Changed library name.

* Refs #3458. Changed private symbols at communication and serialization packages.

* Refs #3458. Changed private symbols at time packages.

* Refs #3458. Refactored streams. Fixed private symbols.

* Refs #3458. Refactored log package. Fixed internal symbols.

* Refs #3458. Refactored seq_num. Fix internal symbols SeqNum ObjectID

* Refs #3458. Refactored stream_id and stream_storage. Fixed internal symbols.

* Refs #3458. Fixed session package symbols.

* Refs #3458. Fixed communication package and util package.

* Refs #3458. Refactor serialization package

* Refs #3458. Fixed internal symbols at session profiles

* Refs #3458. Added external tag to transport.

* Refs #3458. Modified include path

* Refs #3458. Updated define guards

* Refs #3458. Update library name.

* #3451. Updated MicroCDR include path.

* Fixed cmake install

* Updated MicroCDR submodule.

* Fixes linker windows error with logs

* Adapted log to fix windows issue.

* Integration test only for linux.

* Added empty output tests.
2018-10-08 12:20:31 +02:00
Luis Enrique Muñoz Martín 212d8ca9fb Updated with MicroCDR prefix. (#20)
* Refs #3436. Base mc changes.

* Refs #3436. Updated with MicroCDR prefix change.

* Refs #3436. Updated with MicroCDR MicroBuffer name changed (to mcBuffer).

* Refs #3436. Updated MicroCDR fix.

* Refs #3436. Updated MicroCDR submodule.

* Updated MicroCDR thirdparty
2018-09-27 11:25:34 +02:00
Luis Enrique Muñoz Martín 0d4f3d007d Request change at run_session_until_status (#17)
* Request of small API change at run_session_until_status

* Change names from and,or to all,one

* Fixed windows warnings
2018-09-25 16:07:27 +02:00
Luis Enrique Muñoz Martín 8abcf9e868 New write access profile API (#15)
* Refs #3402. Initial API structure.

* Refs #3402. Added generic Write Access Profile

* Changes for acepting pull request github #15.

* Modified generated example code.

* Necessary changes of previous rebase
2018-09-25 08:54:00 +02:00
Julián Bermúdez Ortega 1f30887515 Refs #3139. Added entities creation by reference. (#11)
* Refs #3139. Added entities creation by reference.

* Refs #3139. Added topic creation by reference support.
2018-09-17 08:23:19 +02:00
Ricardo González Moreno 6dee508383
Fixed unitialization on integration tests. 2018-08-07 10:01:41 +02:00
Luis Enrique Muñoz Martín 601da3d761
Updated microcdr and fix example cmakes in windows. 2018-08-07 10:01:41 +02:00
Luis Enrique Muñoz Martín 969d309be2
Modify cmake flags and clean cmake tests. 2018-08-07 10:01:40 +02:00
Luis Enrique Muñoz Martín a353b7a7d1
Ref. #3275 Fix warning windows flag. 2018-08-07 09:59:25 +02:00
Luis Enrique Muñoz Martín fc38ec39a5
#3258. Finish deployment examples. 2018-08-07 09:59:25 +02:00
Luis Enrique Muñoz Martín ea3429305e
#3258. Deployment example strucuture. 2018-08-07 09:59:24 +02:00