Commit graph

567 commits

Author SHA1 Message Date
ivanpauno
3e0efcef34
Delete rcl_impl_getenv, replaced by rcutils_get_env (#502)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
2019-09-25 15:53:30 -03:00
Michel Hidalgo
9196cb81b4
Parse CLI parameters and YAML files (#508)
* Enable incremental parameter yaml file parsing.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Parse CLI parameter files and overrides in rcl.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Address peer review comments.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-09-25 14:57:57 -03:00
Michel Hidalgo
78f8652ee4
Enable incremental parameter yaml file parsing. (#507)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-09-24 11:20:23 -03:00
ivanpauno
4eeaecf969
Fix rcl_action test_graph (#504)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
2019-09-20 14:22:38 -03:00
Dirk Thomas
a9af082d9e
reset error message before setting a new one, embed the original one (#501)
* reset error message before setting a new one, embed the original one

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>

* fix max line length

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
2019-09-17 08:54:33 -07:00
ivanpauno
fa20448730
Add specific return code for non existent node (#492)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
2019-09-17 10:27:01 -03:00
ivanpauno
17598ff6e6
Add node name and namespace validation to graph functions (#499)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
2019-09-13 13:46:45 -07:00
Michel Hidalgo
0ddc17a042
Bring back deprecated CLI arguments (#496)
* Bring back deprecated CLI arguments.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Remove extra vertical space.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-09-13 10:20:02 -07:00
Michel Hidalgo
95495596c2
Polish rcl arguments implementation (#497)
* Polish rcl arguments implementation.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Improve debug logging messages.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-09-12 15:58:52 -07:00
ivanpauno
80407f5f3f
Uncoment some test_graph test cases after fix in rmw_fastrtps (ros2/rmw_fastrtps#316) (#498)
* Uncoment some test_graph test cases after fix in rmw_fastrtps

Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
2019-09-12 14:04:32 -07:00
Michel Hidalgo
e8bbb752df
Promote special CLI rules to flags (#495)
* Promote special CLI rules to flags.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Improve argument parsing logging and error messages.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Remove some short form CLI flags.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-09-11 17:00:51 -07:00
Michel Hidalgo
40a276b6f4
Fail fast on invalid ROS arguments (#493)
* Fail fast on invalid ROS arguments.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Address peer review comments.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Fix warning on Windows.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-09-06 11:35:33 -07:00
Michel Hidalgo
2740a436f6
Enforce -r/--remap flags. (#491)
* Enforce -r/--remap flags.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Cast size_t to int explicitly.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-09-03 14:35:05 -03:00
Michel Hidalgo
6f989433bc
Support parameter overrides and remap rules flags on command line (#483)
* Support rcl_params_t copies.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Parse parameter overrides from command line.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Parameter overrides' tests passing.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Test rcl_yaml_node_struct_copy() function

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Export rcl_yaml_param_parser as rcl dependency.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Zero initialize parameter overrides before rcl arguments copy.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Initialize local variables early enough.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Simplify rcl package.xml

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Assert arguments sanity in rcl args parsing internal functions.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Extend rcl_yaml_param_parser tests to all parameter types.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Address peer review comments.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Support --remap/-r flags.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Please cpplint

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-08-26 13:32:16 -03:00
hyunseok-yang
d07003847b Increase MAX_STRING_SIZE (#487)
* Increase MAX_STRING_SIZE

It's too short for string length.
It occurs the error when the string field in yaml files are too long....

Signed-off-by: Hyunseok Yang <hyunseok7.yang@lge.com>

* update test to match increased limit

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
2019-08-23 14:52:46 -07:00
eboasson
2431ed6d1f Allow get_node_names to return result in any order (#488)
Signed-off-by: Erik Boasson <eb@ilities.com>
2019-08-23 18:05:42 -03:00
Alberto Soragna
8a4c004b62 rosout init and fini marked as RCL_PUBLIC (#479)
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
2019-08-21 11:38:22 -07:00
Alberto Soragna
aa6cd91c63 included header in logging_rosout.c (#478)
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
2019-08-21 11:38:15 -07:00
Dirk Thomas
b66395dc57
include actual size in error message (#490)
* include actual size in error message

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>

* use %u for existing arguments

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
2019-08-20 11:54:42 -07:00
Michel Hidalgo
41792cb6e8
Migrate to '--ros-args ... [--]'-based ROS args extraction (#477)
* Migrate to '--ros-args ... [--]'-based ROS args extraction

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Extend rcl arguments API to retrieve unparsed ROS args.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Adapt rcl arguments tests.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Complete unparsed ROS args functionality.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Address peer review comments.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Extend rcl arguments test coverage.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Adapt more rcl tests to use --ros-args.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Address peer review comments.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Ignore duplicate --ros-args flags.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-08-07 12:58:20 -03:00
Mikael Arguedas
6f20cd9480 Improve security error messages (#480)
* Prints the node name when failing to find security directory

Also quotes directory, node_name and lookup strategy in error message for readability

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>

* don't quote lookup strategy

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>

* newline -> whitespace

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
2019-08-02 16:36:44 -07:00
Esteve Fernandez
5f1e5438af Avoid C4703 error on UWP (#282)
Signed-off-by: Esteve Fernandez <esteve@apache.org>
2019-08-01 12:53:08 -07:00
Mikael Arguedas
926da81913 remove unused CMake code (#475)
* remove copy-n-paste CMake code

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>

* fixup rmw_implementation_cmake dependency

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
2019-07-29 11:16:36 -07:00
Michel Hidalgo
5fde9c0c0e
[YAML Parser] Support parameter value parsing (#471)
* Support parameter YAML string value parsing.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Address peer review comments.

- Improve test coverage using new getter API.
- Unify function return style and improve readability.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Clean up allocations in rcl_yaml_param_parser package tests.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-07-12 15:07:42 -03:00
Michel Hidalgo
f9ceef5c86
[YAML Parser] Depend on rcutils only (#470)
* Make rcl_yaml_param_parser depend on rcutils only.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Address peer review comments.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-07-12 11:01:24 -03:00
Jacob Perron
21ff57b14b
Add function for getting clients by node (#459)
* Add graph test for service clients

There were tests for publishers, subscriptions, and services, but not clients.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Add function for getting clients by node

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Update service client graph test

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Fix doc sentence

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Update docs

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-07-09 09:16:31 -07:00
Emerson Knapp
ad1c4f1edb Remove special case check for manual_by_node for rmw_fastrtps (#467)
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
2019-07-02 10:45:27 -07:00
Víctor Mayoral Vilches
34310df24c Fix memory leak of 56 bytes in test_graph
test_rcl_get_publisher_names_and_types_by_node was finalizing
without calling to rcl_names_and_types_fini which was
generating a memory leak.

These lines fix the leak. Complete report in the pull request

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2019-07-01 11:59:24 -04:00
Emerson Knapp
e9a71b40f7 Change tests to try MANUAL_BY_TOPIC liveliness for FastRTPS (#465)
* Remove tests about FastRTPS not supporting MANUAL_BY_TOPIC liveliness

Signed-off-by: Emerson Knapp <eknapp@amazon.com>

* Remove unused variable

Signed-off-by: Emerson Knapp <eknapp@amazon.com>
2019-06-28 15:55:48 -07:00
ivanpauno
d6ab086b02
Accept quoted int or float values as strings (#464)
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
2019-06-27 17:51:05 -03:00
M. M
b6f4bc97fa Implement get_actual_qos() for subscriptions (#455)
Signed-off-by: Miaofei <miaofei@amazon.com>
2019-06-12 12:51:15 -03:00
Jacob Perron
ec8539b65c
Fix memory corruption when maximum number of parameters is exceeded (#456)
If the maximum number is exceeded fail with an informative error message.

Fixes #419.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-06-07 14:56:05 -07:00
Jacob Perron
79b3ec1052
Log warning when remapping to an invalid node name (#454)
Similar to the warnings when remapping to invalid namespaces, this better communicates failures to the user.

Resolves #449

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-06-05 12:26:16 -07:00
Emerson Knapp
8085c6adbf Use size_t printf format for size_t variable (#453)
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
2019-06-03 19:52:04 -07:00
Michael Carroll
4f68bbf43f
0.7.4
Signed-off-by: Michael Carroll <michael@openrobotics.org>
2019-05-29 18:43:41 -05:00
Emerson Knapp
c39d0d1e0a Fix tests now that FastRTPS correctly reports that liveliness is not supported (#452)
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
2019-05-28 13:09:55 -07:00
Emerson Knapp
d55f015296 In test_events, wait for discovery to be complete bidirectionally before moving on (#451)
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
2019-05-28 12:43:48 -07:00
Ralf Anton Beier
5f0d331712 Allow empty strings if they are quoted. (#450)
Signed-off-by: Ralf Anton Beier <ralf_beier@me.com>
2019-05-24 08:57:47 -07:00
Siddharth Kucheria
9566f39d60
rcl_action - user friendly error messages for invalid transitions (#448)
* user friendly error messages for invalid transitions

Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
2019-05-21 15:17:37 -07:00
Abby Xu
0736f93cc0 fix leak in test_service (#447)
Signed-off-by: Abby Xu <abbyxu@amazon.com>
2019-05-20 16:44:45 -07:00
Abby Xu
fa1757bee8 fix leak in test_guard_condition (#446)
Signed-off-by: Abby Xu <abbyxu@amazon.com>
2019-05-20 16:12:42 -07:00
Abby Xu
2a9b2979a2 fix leak in test_get_actual_qos (#445)
Signed-off-by: Abby Xu <abbyxu@amazon.com>
2019-05-20 16:12:27 -07:00
Abby Xu
82f93afde5 fix leak in test_expand_topic_name (#444)
Signed-off-by: Abby Xu <abbyxu@amazon.com>
2019-05-20 16:11:58 -07:00
William Woodall
c972d0300e
0.7.3 2019-05-20 15:57:11 -07:00
William Woodall
f8333942fd
changelogs
Signed-off-by: William Woodall <william@osrfoundation.org>
2019-05-20 15:57:00 -07:00
Prajakta Gokhale
3806aa226d Fix leaks in rcl_action unit tests (#442)
Fix memory leaks detected by AddressSanitizer from rcl_action unit
tests.

Signed-off-by: Prajakta Gokhale <prajaktg@amazon.com>
2019-05-20 15:04:30 -07:00
Abby Xu
545076505b fix leak in test_client (#443)
Signed-off-by: Abby Xu <abbyxu@amazon.com>
2019-05-20 14:17:28 -07:00
Cameron Evans
0c4c743d29 Fix leaks in test_wait.cpp (#439)
Signed-off-by: cevans87 <c.d.evans87@gmail.com>
2019-05-17 15:38:05 -07:00
Abby Xu
6042af41c7 fix leak in test_context (#441)
Signed-off-by: Abby Xu <abbyxu@amazon.com>
2019-05-17 11:48:58 -07:00
Abby Xu
2380a1a3a8 fix leak in test_init (#440)
Signed-off-by: Abby Xu <abbyxu@amazon.com>
2019-05-16 15:56:20 -07:00