Sriram Raghunathan
93e2945802
Expose get_node_names API from node. ( #508 )
...
* Exposing get_node_names from node handle
Signed-off-by: Sriram Raghunathan <rsriram7@visteon.com>
* Exposing get_node_names from node handle for lifecycle_nodes
Signed-off-by: Sriram Raghunathan <rsriram7@visteon.com>
* Fix stray demangle type
2018-07-05 17:45:09 -07:00
Mikael Arguedas
4507d7a40b
Fix rosidl dependencies ( #507 )
...
* [rclcpp_lifecycle] remove rosidl deps as this package doesnt generate any messages
* depend on rosidl_typesupport_cpp
2018-07-05 13:01:23 -07:00
Dirk Thomas
1869b84a0c
0.5.1
2018-06-28 16:34:33 -07:00
William Woodall
a49281cff3
keep shared pointer reference to rcl_node handle for subscription fini ( #505 )
2018-06-27 13:37:49 -07:00
William Woodall
4d67a8671b
0.5.0
2018-06-25 16:31:01 -07:00
William Woodall
f5c3854585
changelogs
2018-06-25 16:30:51 -07:00
William Woodall
39c22c8508
typo ( #502 )
2018-06-19 12:43:06 -07:00
Michael Carroll
bf89dc0797
Further expand test tolerance to address flakiness. ( #501 )
...
* Further expand test tolerance to address flakiness.
* Remove newline.
2018-06-19 13:06:30 -05:00
William Woodall
62c8c5b762
executor could take more than once incorrectly ( #383 )
...
* Baseline test and force threads to yield.
* Add timer tracking for executor.
* Add locking and test happy-path exit conditions.
* Move logic to multi_threaded_executor
* Address reviewer feedback by reducing scope of set.
* Expand tolerance on testing.
* comment fixup
Otherwise it seemed to me like it would yield twice.
2018-06-18 22:46:28 -05:00
Karsten Knese
d33a46c3b6
comply to new subscription template ( #500 )
2018-06-19 00:20:55 +02:00
William Woodall
bfbb263f3c
fix tests due to changes in rcutils ( #452 )
2018-06-16 13:48:01 -07:00
Karsten Knese
ec17d68b41
*_raw function ( #388 )
...
* publish_raw function
* subscription traits
* listener raw
* rebased
* cleanup and linters
* explicit test for deleter in unique_ptr
* add missing copyright
* cleanup
* add rmw_serialize functions
* linters
* explicit differentiation between take and take_raw
* cleanup debug messages
* rename to rmw_message_init`
* address comments
* address review comments
* raw->serialized
* use size_t (#497 )
2018-06-16 10:36:00 +02:00
William Woodall
1556b6edf4
always get service name from rcl to account for remapping ( #498 )
2018-06-14 21:42:00 -07:00
Mikael Arguedas
1b87970d8e
add missing set_parameters_atomically client ( #494 )
2018-06-12 01:53:40 +02:00
Shane Loretz
4886b2485c
Initialize params via yaml from command line ( #488 )
...
* Initialize params from yaml files
2018-06-08 17:24:29 -07:00
Shane Loretz
9b294ec720
Get parameters that aren't set ( #493 )
...
* Document get_parameters()
* Return NOT_SET params in get params service
2018-06-06 10:23:42 -07:00
Shane Loretz
84c8d58612
Pass initial parameter values to node constructor ( #486 )
...
* Pass parameter values to node constructor
2018-06-05 15:29:20 -07:00
Shane Loretz
8f793fdb4a
Convert rcl_params_t to ParameterMap ( #485 )
...
Convert from rcl_params_t to map of node parameters
Adds rclcpp::parameter_map_from(const rcl_params_t * const)
Adds rclcpp::parameter_value_from(const rcl_variant_t * const)
Adds dependency on rcl_yaml_param_parser
2018-06-05 10:54:08 -07:00
Dirk Thomas
5ab6bde1db
fully delete parameters ( #489 )
...
* allow ParameterValue class to be copy constructed with type not-set
* actually remove deleted parameters from the map
2018-06-04 15:06:01 -07:00
dhood
2a17232ad0
Subscription tests using bind in member callback ( #480 )
...
* Add tests for member callbacks
* Add tests for member callback in Test class (not working with gcc7)
* Uncomment test that was failing
* Linter fixup
2018-06-04 12:48:02 -07:00
Shane Loretz
d298fa4445
Split ParameterVariant into Parameter and ParameterValue ( #481 )
...
* Split ParametrVariant into Parameter and ParameterValue
* Test expects ParameterTypeException
* get_parameter_value() -> get_value_message()
* Make to_parameter() const and rename to to_parameter_msg()
2018-06-01 11:48:56 -07:00
Esteve Fernandez
97575fd59b
Relax template matching rules for std::bind and GNU C++ >= 7.1 ( #484 )
...
* Relax template matching rules for std::bind and GNU C++ >= 7.1
* Document reason test was added
2018-06-01 13:28:45 -04:00
Ernesto Corbellini
d6057270f2
Use rosgraph_msgs/Clock for /clock topic. ( #474 )
...
* Use rosgraph_msgs/Clock for /clock topic.
* Update the test cases.
2018-05-31 01:32:08 +02:00
Shane Loretz
4efcd330fe
Spin before checking if clock changed ( #483 )
2018-05-30 15:09:30 -07:00
Shane Loretz
d82ce9666c
Autostart parameter services ( #478 )
...
* Autostart parameter services
* Add bool start_parameter_services
2018-05-25 13:07:59 -07:00
dhood
f9a78df9fe
Workaround for wait_for_service lasting the full timeout with connext ( #476 )
...
* Limit wait_for_graph_change timeout as alternative workaround for connext
* Increase max wait time to 100ms
2018-05-22 21:01:47 -04:00
Tom Moore
15d505ec1f
Adding parameter array support ( #443 )
...
* Adding parameter array support
* PR feedback
* Matching changes in upstream branch
* EXPECT_EQ takes expected value a first argument and actual as second
2018-05-10 16:05:52 -07:00
Michael Carroll
1be4d2d914
Fix bug when mixing shared_ptr and bind. ( #470 )
2018-05-04 13:10:47 -05:00
Shane Loretz
7cd8429534
Fini arguments passed to rcl_node_init() ( #468 )
...
* Fix memory leak in node_base
* Always free arguments
2018-05-01 12:59:15 -07:00
Mikael Arguedas
66a7c62531
update to rcutils logging in commented code as well ( #466 )
2018-04-27 15:31:08 -07:00
William Woodall
1610fc3973
pass AnyExecutable objects as reference to avoid memory allocation ( #463 )
...
* pass AnyExecutable objects as reference to avoid memory allocation
* remove style change
2018-04-17 21:54:42 -05:00
Shane Loretz
360f1b9425
Add CLI args to Node constructor ( #461 )
...
* Add CLI args to Node constructor
Adds arguments and use_global_arguments to NodeBase
* Check for integer overflow
2018-04-17 10:52:49 -07:00
Michael Carroll
07e5be7621
Correctly clean up arguments structure. ( #459 )
...
* Correctly clean up arguments structure.
* Use zero-initialized structure.
2018-04-11 12:43:18 -05:00
Dirk Thomas
45dcd0c6e5
handle node names which are null ( #435 )
2018-03-30 10:56:06 -07:00
Matthew
fa81d95e33
Add argument for thread count to multithreaded executor ( #442 )
2018-03-29 17:18:00 -07:00
Michael Carroll
ef17ec6248
Remove ros arguments ( #454 )
...
* Mark arguments vector as const.
* Add C++ version of rcl_remove_ros_arguments
2018-03-27 14:57:23 -07:00
Dirk Thomas
5f1fc660ea
change export order for static linking ( #446 )
2018-03-22 16:26:42 -07:00
jwang11
947e3f7e67
Fix time type issue in time unittest ( #453 )
...
Obviously it mean RCL_SYSTEM_TIME but not RCL_ROS_TIME in some test cases
Signed-off-by: jwang <jing.j.wang@intel.com>
2018-03-20 15:43:40 -07:00
William Woodall
9ce5aaa792
Revert "Revert "Store the subscriber, client, service and timer"" ( #449 )
...
* Revert "Revert "Store the subscriber, client, service and timer (#431 )" (#448 )"
This reverts commit 168d75cf1e
.
* Convert all rcl_*_t types to shared pointers
Converts all rcl_*_t types in the memory allocation strategy to shared pointers to prevent crash happening when a subscriber is reset.
Issue: #349
* fixups
2018-03-19 21:05:26 -07:00
jwang
af6e86c522
Make rclcpp::Duration support scale operation
...
Duration scale is a convinient operation which had supported in ROS.
This commit make ROS2 support it.
Signed-off-by: jwang <jing.j.wang@intel.com>
2018-03-16 00:56:32 -07:00
William Woodall
d8abea55ec
make log location parameter const ( #451 )
2018-03-15 18:05:15 -07:00
William Woodall
168d75cf1e
Revert "Store the subscriber, client, service and timer ( #431 )" ( #448 )
...
This reverts commit 36526469c7
.
2018-03-13 18:37:52 -07:00
Denise Eng
36526469c7
Store the subscriber, client, service and timer ( #431 )
...
* Convert all rcl_*_t types to shared pointers
Converts all rcl_*_t types in the memory allocation strategy to shared pointers to prevent crash happening when a subscriber is reset.
Issue: #349
* fixup! Convert all rcl_*_t types to shared pointers
* fix { use on function definitions
We always put the { on a new line for function definitions and class declarations.
2018-03-12 11:26:11 -07:00
Dirk Thomas
1a604b0c28
update style ( #445 )
2018-03-01 08:58:52 -08:00
Mikael Arguedas
2b7cb21cbd
advise to ask questions on ROS answers
2018-02-26 22:01:36 -08:00
dhood
787de6ebf1
Get node's logger name from rcl ( #433 )
...
* Get logger name from rcl [direct]
* Get logger name from rcl [indirect]
* Update tests
* fixup on variable usage
* Move get_logger_name to NodeLogging interface
2018-02-26 14:36:10 -08:00
dhood
3786c91deb
Use ament_cmake_ros ( #444 )
...
* Control shared/static linking via BUILD_SHARED_LIBS
* Remove rmw dependency
* Add for rclcpp_lifecycle too
* exec depend on ament_cmake is for normalize_path
2018-02-26 09:46:44 -08:00
Guillaume Autran
0e79842b6b
rclcpp logging still uses fprintf all over the place. ( #439 )
...
* rclcpp logging still uses fprintf all over the place.
Remove all printf log lines and replace with RCLUTILS_LOG_XXX macros.
Issue: #438
* fixup include order
2018-02-23 17:24:37 -08:00
William Woodall
f88ade7a2a
avoid using invalid iterator when erasing items using an iterator in a loop ( #436 )
...
* avoid using invalid iterator when erasing items using an iterator in a loop
* do not overwrite iterator in cases where it will be unused
2018-02-02 16:46:24 -08:00
serge-nikulin
3a503685bf
change rcutils_time_point_value_t type from uint64_t to int64_t ( #429 )
...
* change rcutils_time_point_value_t type from uint64_t to int64_t
* small style changes
* fix test time datatype
* Update time primatives to int64_t
* change time primitive datatype to signed
* A few more instances of UL to L
2018-02-01 13:50:33 -08:00