Commit Graph

91 Commits

Author SHA1 Message Date
Pablo Garrido cdd4120757
Add BigHelloWorld example (#379)
* Add BigHelloWorld example

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

* Fix printf

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

* Fix windows

* Fix warning

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

---------

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
2024-01-26 08:02:46 +01:00
Pablo Garrido 243b16b659
Fix subscriber example (#309)
* Fix subscriber example

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

* Fix subscriber example

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
2022-01-26 16:11:37 +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 0a3d113e8e Custom ip and port in examples [4539] (#66)
* 4310. Custom ip and port in pub sub examples.

* Changes to accept PR.
2019-02-19 16:37:14 +01: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
Julián Bermúdez Ortega 23326f50a5 Refs #3533. Modified XML representation in examples. (#28) 2018-10-11 15:22:21 +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
Ricardo González Moreno 1111dec6f8
Hardening warnings. 2018-08-07 09:59:23 +02:00
Luis Enrique Muñoz Martín 03afa025cf
Refs #2233 #3148 #3150 #3215 #3152 Added tests.
Refs #3233. Added Output Best Effort test.

Refs #3148. Addapt interaction and cross_serialization tests. Removed xrce_serialization test.

Refs #3148. Added Gateway.

Refs #3148. Client interaction test strucure base finished.

Refs #3150, #3150, #2315, #3152. Finish tests. The test with lost have errors.

Removed unused files and declarations

Added examples with cxx compatibility.

Addapted client.h to nuttx.

Fixed defined error.

Fix Bugs at tests and modify logs.

Refs #3150. Fix test bugs.

Ref #3150. Fix input bug at lost messages.

Remove a warning from example code.
2018-08-07 09:59:20 +02:00
Luis Enrique Muñoz Martín 960ef521a5
#3147. Fixed xml error. 2018-08-07 09:58:31 +02:00
Luis Enrique Muñoz Martín fd4f95b413
#3153. Modified examples with close transport and generate code API cahnges. 2018-08-07 09:58:31 +02:00
Luis Enrique Muñoz Martín 35e319011a
#3147. Changed installation examples path. 2018-08-07 09:58:30 +02:00
Luis Enrique Muñoz Martín 4db8dda5fb
#3147. Add MTUs to client.config file. Modify Examples. 2018-08-07 09:58:30 +02:00
Luis Enrique Muñoz Martín 931fb1f98d
#3147. Clear create entities profiles. Addapt examples. 2018-08-07 09:58:29 +02:00
Luis Enrique Muñoz Martín 533766931f
#3147. Minnor API and examples changes. 2018-08-07 09:58:29 +02:00
Luis Enrique Muñoz Martín 72e4c148d7
#3147. Minnor changes in examples. 2018-08-07 09:58:29 +02:00
Luis Enrique Muñoz Martín 6a81e9470a
#3144. Removed typdef fastforward declaration. 2018-08-07 09:58:29 +02:00
Luis Enrique Muñoz Martín e9333c5c2e
#3147. Changed examples. Add prefix to transport. 2018-08-07 09:58:29 +02:00
Luis Enrique Muñoz Martín 6d232d0cf7
#3147. Read data with two API modes. #3144. Shape demo changes. 2018-08-07 09:58:28 +02:00
Luis Enrique Muñoz Martín d699eb6f3f
#3147. Removed unused files. Modified cmake to check profiles enables. 2018-08-07 09:58:28 +02:00
Luis Enrique Muñoz Martín 05bf18655a
#3188. Modify examples with prefix. 2018-08-07 09:58:28 +02:00
Luis Enrique Muñoz Martín 63ef97e95f
#3188. User necessary names changed. 2018-08-07 09:58:28 +02:00
Luis Enrique Muñoz Martín 0e1dc3a351
#3144. Minor changes. 2018-08-07 09:58:28 +02:00