Commit graph

135 commits

Author SHA1 Message Date
Dirk Thomas
35add7f8cc remove trailing spaces from comparisons, obsolete quotes and explicit variable expansion 2016-06-16 09:19:20 -07:00
Dirk Thomas
9f5fb0fb5e require CMake 3.5 2016-06-15 11:35:56 -07:00
Dirk Thomas
10c14e02e0 suppress cpplint warning 2016-06-14 12:18:06 -07:00
William Woodall
fd3d4a21e8 de-duplicate documentation 2016-06-13 16:29:45 -07:00
Dirk Thomas
41573e3540 fix compiler warning 2016-06-10 09:48:43 -07:00
Jackie Kay
ef5690278b adjust timing in flaky Windows test (#60)
Adjust "wait_period" to be much greater than "trigger_period" in multi-threaded waitset test
2016-06-06 17:44:41 -07:00
William Woodall
17845ae1f9 Clarify wait concurrency (#59)
* fix bug where "wait set empty" check was wrong

* clarify rcl_wait is thread-safe with unique sets

* style fixup

* explicitly capture const local variables

this is required on Windows, but not gcc/clang
2016-06-02 16:08:56 -07:00
William Woodall
818b15463b add graph functions to support wait_for_service (#57)
* add graph functions to support wait_for_service

* is_ready -> is_available

* add function to create rcl_guard_condition from an existing rmw_guard_condition

* create graph guard condition in node automatically

* tests for graph API

* style fixup

* remove debug stuff from test_graph

* only enable test_graph for OpenSplice

* fixup

* add rcl_node_is_valid function

* add tests for new graph API functions

* fixup

* reorder the destruction of node vs waitset

this also addressed the segfault issues, but the
proper fix was committed to rmw_opensplice_cpp
while this ordering is not strictly necessary it
is slightly more correct

* disable missing-field-intializers warning

it's too strict and will be relaxed in newer gcc's

* use to_string since type changes with OS

* use more specific gtest assert to avoid warning

* added a secondary check in the test_graph.test_rcl_service_server_is_available test

* uncrustify

* doc fixup

* condition pragma on not _WIN32
2016-05-28 15:14:38 -07:00
Jackie Kay
2811eb1312 Keep service around until client exits (#48)
* Keep service around until client exits

* use ignore_signal return handler
2016-05-03 15:55:55 -07:00
William Woodall
2c9320f5b0 check rmw id using RCL_ASSERT_RMW_ID_MATCHES (#51)
* check rmw id using RCL_CHECK_RMW_ID_MATCHES_OR_DIE

* return a more distinct return code on mismatch

* rename env var to RCL_ASSERT_RMW_ID_MATCHES

* [style] fixup
2016-05-03 13:38:49 -07:00
William Woodall
a01943973a fix typo 2016-05-02 19:00:08 -07:00
Dirk Thomas
347f520b46 use CTest BUILD_TESTING 2016-04-28 18:44:26 -07:00
dhood
7aeb957c2c Workaround for the change in libnddscore.so in connext 5.2.0 between gcc4.6.3 and gcc4.8.2 (#55)
* Workaround for the change in libnddscore.so in connext 5.2.0 between gcc4.6.3 and gcc4.8.2

* Prefix macro variables with underscore
2016-04-28 15:27:12 -07:00
Jackie Kay
11753a3dd3 Cmake issues (#53)
* Clean up cmake infrastructure for tests
2016-04-26 15:54:51 -07:00
Jackie Kay
148962dbc4 Fix atomics on Windows (#49)
* Fix atomics on Windows
2016-04-24 21:23:39 +00:00
Jackie Kay
b3db5ee364 tests for rcl_wait (#45)
* Add tests for rcl_wait and fix for timers
2016-04-18 18:03:51 -07:00
Jackie Kay
5a2d6cca73 include launch in the package.xml (#46) 2016-04-18 16:54:48 -07:00
Jackie Kay
cdea6aee82 Add test for inter-process services (#44)
* Add remote (inter-process) services test for rcl and change default QoS profile for services.
2016-04-15 16:29:20 -07:00
Jackie Kay
b7ac94be43 handle negative timeout (#43) 2016-04-14 13:18:22 -07:00
Jackie Kay
3f886e075f Make timer callback optional and fix timer logic
Make timer callback optional and fix wait bugs
2016-04-01 18:14:12 -07:00
Jackie Kay
087315b4c6 Guard conditions: remove node from constructor, fix header
* Use specific name for subscription topic

* Remove references to node in the guard condition API, it's not needed

* Provide implementation of guard_condition_trigger with the correct name

* Change to trigger_guard_condition

* remove fixed guard conditions
2016-04-01 14:06:32 -07:00
Jackie Kay
e40323205e Fix rmw array semantics
Fix RMW semantics
2016-04-01 13:51:45 -07:00
Dirk Thomas
80b1759d36 fix syntax on Linux and Windows 2016-03-31 17:18:20 -07:00
Jackie Kay
08e24a50e9 Merge pull request #37 from ros2/revert_test
take out test case
2016-03-31 16:13:29 -07:00
Dirk Thomas
c7362e3163 fix unknownEvaluationOrder warning 2016-03-31 13:33:58 -07:00
Jackie Kay
8865150fdc take out test case 2016-03-31 12:49:12 -07:00
Jackie Kay
2ebc7d71c4 Add fix for resize to zero bug with test 2016-03-31 12:45:22 -07:00
Jackie Kay
2749c08f60 Add test for resize to zero bug 2016-03-31 10:22:21 -07:00
Jackie Kay
a8787601fc Remove check argument for null from int argument 2016-03-30 13:10:55 -07:00
Jackie Kay
534a49c480 Add services and clients 2016-03-24 15:23:41 -07:00
Jackie Kay
18fbfad116 add test for topic name 2016-03-09 15:27:46 -08:00
Dirk Thomas
fcee889f55 fix uncrustify warnings 2016-03-04 08:19:43 -08:00
Dirk Thomas
1d94f29fec tests generated for each RMW impl must have unique names to be distinguishable 2016-03-03 16:07:20 -08:00
Jackie Kay
e17825844b Don't ignore rmw_connext_dynamic_cpp 2016-02-29 09:32:12 -08:00
Dirk Thomas
9e8ed95dad fix style of header include guard 2016-02-19 09:52:43 -08:00
Jackie Kay
7e578a8fd6 Make failed rcl_node_init to clean up fully, to allow recreating a node.
Update tests to not mask the improper cleanup.
2016-02-12 15:58:09 -08:00
William Woodall
775428de89 extend the library path with the location of the memory tools also 2016-02-12 10:46:45 -08:00
William Woodall
b2acdd126d [style] clean up of recent changes to time.h/c 2016-02-12 00:42:20 -08:00
William Woodall
135836e1de fixes for publisher and wait found during testing 2016-02-12 00:41:47 -08:00
William Woodall
a48ba5e1db update usage of rmw_waitset to reflect recent changes 2016-02-12 00:40:55 -08:00
William Woodall
b056b74eba add publisher and subscription tests 2016-02-12 00:40:38 -08:00
William Woodall
d665b05601 add missing include in rcl.h 2016-02-12 00:38:01 -08:00
William Woodall
c49a06bce4 adding multi rmw implementation infrastructure 2016-02-12 00:37:31 -08:00
William Woodall
226c39a8af refactoring test layout and cmake logic 2016-02-12 00:37:02 -08:00
Tully Foote
4b7c0bbdd9 Add the core functionality for ros time support.
This is as defined in http://design.ros2.org/articles/clock_and_time.html

This has the core functionality implemented in rcl.
It will need to be extended into each client library.
There are also areas to fill in for more support for duration, rates, and timers.
2016-02-11 17:06:21 -08:00
Dirk Thomas
2614db2516 update style for uncrustify 0.62 2016-02-09 12:41:14 -08:00
Esteve Fernandez
3190e01ed8 Fix "function declaration isn't a prototype" warnings 2016-02-04 11:01:47 -08:00
Jackie Kay
d6ea437dce Incorporate rmw_waitset 2016-01-12 17:43:14 -08:00
Jackie Kay
6d25f56568 fix for waitset api change 2016-01-06 10:05:58 -08:00
William Woodall
3310359928 reduce scope of variable 2016-01-05 15:42:10 -08:00