Commit graph

663 commits

Author SHA1 Message Date
Michael Carroll
b301180872 Support for rclcpp::NodeOptions (#379)
* Move node_options into it's own header.

Signed-off-by: Michael Carroll <michael@openrobotics.org>

* Check before fini to avoid duplicate.

Signed-off-by: Michael Carroll <michael@openrobotics.org>
2019-02-06 12:00:45 -08:00
RARvolt
114bc52891 Fully qualified node name is computed once and stored. 2019-02-01 18:35:25 -08:00
RARvolt
586ae664c5 Add rcl_node_get_fully_qualified_name (#255) 2019-02-01 18:35:25 -08:00
Michael Carroll
e9279d1914
Make rcl_remap_t use the PIMPL pattern (#377)
Signed-off-by: Michael Carroll <carroll.michael@gmail.com>
2019-01-29 09:16:25 -06:00
Michael Carroll
59ab083ade
Minor documentation typo (#376)
Fix a small typo in the documentation for `rcl_get_zero_initialized_arguments`

Signed-off-by: Michael Carroll <carroll.michael@gmail.com>
2019-01-29 09:16:01 -06:00
M. M
097ff294d0 remove unit test hack (#368)
Signed-off-by: Miaofei <miaofei@amazon.com>
2019-01-29 08:09:12 -05:00
William Woodall
7f6b914ac4
pass context to wait set, and fini rmw context (#373)
* pass context to wait set, and fini rmw context

Signed-off-by: William Woodall <william@osrfoundation.org>

* use identifier rather than impl to check init status

Signed-off-by: William Woodall <william@osrfoundation.org>
2019-01-24 19:43:49 -08:00
Nick Burek
c6788e4e54 Publish logs to Rosout (#350)
* Implementing the rosout logging feature.

* fixup for PR

* Fixup for PR.

* Fixing broken unit tests.

* Minor fixup for PR.

* Fixing bug in rosout teardown.

* Fixing unit test that broke because the rosout node wasn't getting counted.

* Fixing warnings on Windows.
2019-01-14 13:47:57 -08:00
Steven! Ragnarök
ca97e5ca0b 0.6.4 2019-01-11 12:13:30 -08:00
William Woodall
c60290e17d
add method for accessing rmw_context from rcl_context (#372)
Signed-off-by: William Woodall <william@osrfoundation.org>
2019-01-10 17:13:44 -05:00
Jacob Perron
ecc3cb5377
Add parentheses around use of zerouuid macro (#371)
Otherwise the preprocessor may gobble up the commas in mistake of extra parameters when it is passed to uuidcmpzero.
cppcheck v1.86 was complaining about this line.
2019-01-09 15:50:15 -08:00
Jacob Perron
65bf34b3b7
[rcl] Guard against bad allocation calling rcl_arguments_copy() (#367)
* [rcl] Add test for copying arguments struct with no arguments

* Override allocate function in test to reveal bug

* [rcl] Only allocate arrays if there are things to copy in rcl_argument_copy()

Also guard against freeing invalid pointers if rcl_argument_copy() fails.

* Remove uncessary guard against NULL pointer
2019-01-03 16:31:12 -08:00
sgvandijk
22e61b4107 Ensure that context instance id storage is aligned correctly (#365)
* Ensure that context instance id storage is aligned correctly

* Make alignment compatible with MSVC

* Namespace alignment macro with RCL_
2019-01-03 11:54:08 -08:00
Jacob Perron
f755c64de8
Fix error from uncrustify v0.68 (#364) 2018-12-21 10:06:28 -08:00
Shane Loretz
6b6c0fe81d
Fix logic that moves goal handles when one expires (#360) 2018-12-18 15:16:21 -08:00
Shane Loretz
5162a99685
Avoid timer period being set to 0 (#359) 2018-12-18 11:39:22 -08:00
Shane Loretz
657d9e84c7 0.6.3 2018-12-13 17:09:47 -08:00
Shane Loretz
3b7c208bba
Set rmw_wait timeout using ros timers too (#357) 2018-12-13 15:50:37 -08:00
Steven! Ragnarök
e5df9aa428 0.6.2 2018-12-12 21:51:15 -08:00
William Woodall
c3c0789c7a
update docs about possibility of rcl_take no taking (#356)
* update rcl_wait doc with respect to subs and possibility of failing takes

* add a note about possible failing takes in rcl_take docs
2018-12-12 15:28:25 -08:00
Jacob Perron
1360c82667 [rcl_action] Bugfix: arithmetic error 2018-12-11 11:07:41 -08:00
Jacob Perron
f0aef34bd7 [rcl] Bugfix: ensure NULL timeout is passed to rmw_wait() when min_timeout is not set
Otherwise, there is a risk of integer overflow (e.g. in rmw_fastrtps) and rmw_wait() will wake immediately.
2018-12-11 11:07:41 -08:00
Steven! Ragnarök
3b101540a2 0.6.1 2018-12-06 21:58:54 -08:00
William Woodall
0518125724 add wait_for_action_server() for action clients (#349)
Signed-off-by: William Woodall <william@osrfoundation.org>
2018-12-06 18:57:17 -08:00
Nick Burek
228cd0082c Adding new cli parameters for configuring the logging. (#327)
* Adding new cli parameters for configuring the logging.

cr https://code.amazon.com/reviews/CR-3728503

* Moving the external logger library from rcutils into rcl. Also automatic uncrustify.

* Fixing issue with rebase

* Temporarily switching the default to noop logger ext_lib while system dependency issue is solved for Windows/Mac.

* Fixing the format2/3 xmllint issue.

* style changes, and one actual fix

Signed-off-by: William Woodall <william@osrfoundation.org>

* rename rc_logging* to rcl_logging*

Signed-off-by: William Woodall <william@osrfoundation.org>

* Expand rcl_logging_configure API with allocator

This is to make sure that this API is complete, and we can merge rcl#350 later without breaking the API at a later date.

* update logging.c with new use of allocator in API

* update init.c with new API changes

* Switching back to va_list for output handlers.

* address review comments

Signed-off-by: William Woodall <william@osrfoundation.org>
2018-12-06 17:47:56 -08:00
Shane Loretz
66b82291a1
adapt to action implicit changes (#353) 2018-12-06 16:42:41 -08:00
Ross Desmond
8d6fb9aab5 Add node graph api to rcl. (#333)
This is an omnibus rollup of all of the previous commits
from https://github.com/ros2/rcl/pull/333
2018-12-06 16:04:29 -08:00
Alexis Pojomovsky
c5798e4774 Adds action interaction tests (#352)
* Add action_interaction_tests

* Fixed tests to work with new uuid

* Added comments for each test

* Addressed peer review comments

* Removed unnecessary rcl_reset_error calls from test_action_communication

* Addressed second part of peer review
2018-12-06 14:09:03 -08:00
Alexis Pojomovsky
a30ccdf894
Merge pull request #351 from apojomovsky/apojomovsky/run_communication_tests_against_rmw_implementations
Enable test_action_communication to compile against available rmw
2018-12-06 15:11:18 -03:00
Alexis Pojomovsky
f9ce6bd186 Increased gtest timeout for communication tests 2018-12-06 14:41:09 -03:00
Alexis Pojomovsky
46e2911d45 Removed unnecessary condition in cmake 2018-12-05 17:37:21 -03:00
Alexis Pojomovsky
316c62d20d Make test_action_communication to be compiled against all available rmw" 2018-12-05 16:53:41 -03:00
Alexis Pojomovsky
b1c4d95abe Change UUID type in action msgs (#338)
* Make use of unique_identifier_msgs/uuid in rcl_action

* Update to use goal_id.uuid

* Remove unnecessary find_package of unique_identifier_msgs
2018-12-04 11:05:20 -08:00
Shane Loretz
c1dfda97e1
add rcl_action_server_is_valid_except_context (#348) 2018-12-01 08:55:07 -08:00
Shane Loretz
dcaef179b1 Fini even if node context is invalid and reset error (#346) 2018-11-30 21:45:47 -06:00
Shane Loretz
fd77323b9d
Add timer to action server to check expired goals + asan fixes (#343)
* Add timer to action server to check expired goals

* Fix leak in action_server

* Fix leaks and heap overflow errors

* Fix leaks in tests
2018-11-30 18:24:17 -08:00
Alexis Pojomovsky
128f28499b Increased timeout for rcl_wait in action tests (#344) 2018-11-30 14:56:07 -08:00
William Woodall
1529b620cc
fix compiler warning in clang (#345)
* fix compiler warning in clang

Signed-off-by: William Woodall <william@osrfoundation.org>

* same thing but for node too

Signed-off-by: William Woodall <william@osrfoundation.org>
2018-11-30 16:40:02 -06:00
William Woodall
97ad0013e2
refactor init to not be global (#336)
* refactor init to not be global

Signed-off-by: William Woodall <william@osrfoundation.org>

* style changes

Signed-off-by: William Woodall <william@osrfoundation.org>

* refactor to hide use of C11 atomics in implementation

Signed-off-by: William Woodall <william@osrfoundation.org>

* fix new action tests

Signed-off-by: William Woodall <william@osrfoundation.org>

* use alternative atomic init for Windows support

* updates after rebase

Signed-off-by: William Woodall <william@osrfoundation.org>

* cleanup rmw_init_options before copying

Signed-off-by: William Woodall <william@osrfoundation.org>

* fix two bugs in new init code

* relax validity checks in a few places to facilitate post shutdown cleanup

Signed-off-by: William Woodall <william@osrfoundation.org>

* fixing tests for new API behavior

Signed-off-by: William Woodall <william@osrfoundation.org>

* to allocator -> to allocate

* acutally call rmw_shutdown() and address review comments

Signed-off-by: William Woodall <william@osrfoundation.org>
2018-11-29 21:32:54 -08:00
Alexis Pojomovsky
dfaa412bbf
Merge pull request #331 from ros2/hidmic/complete-action-tests
Completes integration tests for action client/server
2018-11-29 20:30:33 -03:00
Shane Loretz
b2694dfb3d
rcl_action_expire_goals() outputs goals that expire (#342)
* rcl_action_expire_goals() outputs goals that expire
2018-11-28 19:10:06 -08:00
Alexis Pojomovsky
aead12917a Addressed peer review comments v2 2018-11-28 15:07:46 -03:00
Michael Carroll
fbd2b08937
Methods to retrieve matched counts on pub/sub. (#326)
* Methods to retrieve matched counts on pub/sub.

* Add documentation.

* Use simplified error checking.

* Add sleep for opensplice and connext.

* Fix docs.

* Address reviewer feedback.

* Wait on guard condition rather than static timeout.

* Attempt to force mismatched QoS settings.

* Fix mismatched QoS test.
2018-11-28 10:35:19 -06:00
Shane Loretz
15ac20738c
process_cancel_request no longer changes goal state (#341) 2018-11-27 15:05:38 -08:00
Alexis Pojomovsky
10eebe3a3b Added checks for wait set entities 2018-11-27 14:25:56 -03:00
Alexis Pojomovsky
d03d5605c1 Addressed peer review comments 2018-11-27 14:11:47 -03:00
Alexis Pojomovsky
4ee3182380 Updated action tests to match the updated API
Added action cancel test

Added action result communication test

Added action status communication test

Added action feedback communication test

Fix wrong return code in action client
2018-11-26 19:27:53 -03:00
Michel Hidalgo
bde76ab40e [rcl action] Augments test_action_communication test. 2018-11-22 11:14:56 -03:00
Michel Hidalgo
f531f682ea [rcl action] Exposes sequence numbers for all requests and responses. (#339) 2018-11-21 16:50:03 -08:00
Jacob Perron
f39ac3cbe7 [rcl_action] Clean up CMakeLists.txt 2018-11-20 17:53:23 -08:00