Commit graph

71 commits

Author SHA1 Message Date
ivanpauno
99630cb66d
Using ament_target_dependencies where possible (#400)
* Using ament_target_dependencies where possible

Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>

* Modified rcl_add_custom_* to use AMENT_DEPENDENCIES where possible

Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>

* Added again osrf_testing_tools_cpp::memory_tools library where needed.

Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>

* Modified with PR comment, and replaced forgotten osrf_testing_tools_cpp including

Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
2019-03-19 09:22:16 -03:00
Jacob Perron
1d8b831bdf Fix typo in Doxyfile
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-03-12 00:12:37 -07:00
Dirk Thomas
756b065653
update tests to use separated action types (#340)
* update test to IDL-based action generation

* update test to IDL-based action generation

* fix merge conflict

* update new tests

* update action types

* match renamed action types

* style fix

* update types using unique_identifier_msgs
2019-03-11 21:12:36 -07:00
Jacob Perron
1a34301995
[rcl_action] Minor documentation fixes (#397)
* Update rcl_action Doxyfile

Add reference to rcl tagfile and fix generated tagfile name.

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

* Fix minor doc errors

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-03-11 14:46:18 -07:00
Sachin Suresh Bhat
2ff5df0c11 Set symbol visibility to hidden for rcl (#391)
* Set symbol visibility to hidden for rcl

Enabling symbol visibility feature in gcc and clang compilers.
This will hep find symbol export related issues in linux and
potentially reduce compile times.

Discourse topic link:
https://discourse.ros.org/t/set-symbol-visibility-to-hidden-for-rmw-and-rcl-packages/7981

Signed-off-by: Sachin Suresh Bhat <bhatsach@amazon.com>

* Remove WIN specific compiler definition in configure_rcl

Signed-off-by: Sachin Suresh Bhat <bhatsach@amazon.com>

* Rename macro name rcl_set_symbol_visibility_hidden

Signed-off-by: Sachin Suresh Bhat <bhatsach@amazon.com>

* Change macro to args for rcl_set_symbol_visibility_hidden

Signed-off-by: Sachin Suresh Bhat <bhatsach@amazon.com>
2019-03-05 18:09:55 -08:00
Jacob Perron
5ec52d004b
Fix rcl_action documentation (#380)
* Fix rcl_action_goal_info_t documentation

* Fix rcl_action_expire_goals documentation

* Fix information about thread safety

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-02-12 09:31:19 -08:00
Jacob Perron
97b87263d9 Remove dummy executable
Previously used to test compilation of rcl_action headers.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-02-07 11:24:30 -08:00
Jacob Perron
97bc6ac764 Remove unused action server option 'clock_type'
The clock type is instead as an argument to the action server's init function and stored in the impl.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-02-07 11:24:30 -08:00
Jacob Perron
8de90f66aa Set error message when there is an invalid goal transition
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-02-07 11:24:30 -08: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
Steven! Ragnarök
ca97e5ca0b 0.6.4 2019-01-11 12:13:30 -08: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
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
Steven! Ragnarök
e5df9aa428 0.6.2 2018-12-12 21:51:15 -08:00
Jacob Perron
1360c82667 [rcl_action] Bugfix: arithmetic error 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
Shane Loretz
66b82291a1
adapt to action implicit changes (#353) 2018-12-06 16:42:41 -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
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
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
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
Jacob Perron
ce8ac5eeec [rcl_action] Implement wait set functions for action server 2018-11-20 17:53:23 -08:00
Jacob Perron
acc974e43b
Add action server implementation (#323)
* Implement action server init, fini, and is_valid functions

* Add macros for initializing services and publishers

* Implement rcl_action_server_get_default_options()

* Implement rcl_action_accept_new_goal()

* Add function, rcl_action_server_goal_exists(), for checking if goal is already being tracked by an action server

* Add unit tests

* Implement rcl_action_server_get_goal_handles()

* Implement rcl_action_server_get_options()

* Implement rcl_action_server_get_action_name()

* Implement rcl_action_get_goal_status_array()

* Bugfix: reset pointers and size in type finalize functions
Also let finalize functions be called on already finalized objects

* Implement send/take functions for action server services

* Implement action server publishers for feedback and status

* Implement rcl_action_process_cancel_request()

* Add partial communication tests

* Define UUID_SIZE

* Use type-erased pointer for rcl_action_publish_status()

* Implement rcl_action_clear_expired_goals()
Introduce rcl_clock_t to action server implementation.

* Change internal goal handle array to be an array of pointers.

* Add check for invalid action names

* Do heap allocation of temporary array to satisfy MSVC compiler

* Bugfix: finalize node in test tear downs and reset expected errors

* Update documentation

* Update package.xml

* Pass in rcl_clock_t to action server
Rather than initializing internally.

* Do not finalize goal handles in expire function
Instead, leave it up to the caller to finalize goal handles.
Renamed the function to rcl_action_expire_goals.
2018-11-20 12:04:13 -08:00
Jacob Perron
d86d1c4135 Refactor actions wait set functions to leverage new wait set API 2018-11-20 10:04:49 -08:00
Steven! Ragnarök
b2177b2281 0.6.0 2018-11-19 06:22:36 -08:00
Michel Hidalgo
e59c14638d
Merge pull request #329 from ros2/hidmic/fix-empty-action-name
Makes rcl_action_get_*_name() functions check for empty action names.
2018-11-16 16:11:28 -03:00
Michel Hidalgo
f256da0a86
Merge pull request #319 from ros2/hidmic/action-client-implementation
Action client implementation
2018-11-15 13:42:08 -03:00
Michel Hidalgo
276aed1dff [rcl action] Addresses peer review comments (#329) 2018-11-14 19:33:21 -03:00
Michel Hidalgo
d77c9b6965 [rcl action] Makes rcl_action_get_*_name() functions check for empty action names. 2018-11-14 17:27:17 -03:00
Michel Hidalgo
c7e61834b4 [rcl action] Use macros instead of static function for action client impl. 2018-11-14 16:56:05 -03:00
Michel Hidalgo
78168bb52a [rcl action] Removes duplicate typedef in action_client header. 2018-11-14 15:54:32 -03:00