Skip to content

micro-ROS Library auto-update 15-07-2021 06:18 #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion built_packages
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ https://github.com/micro-ROS/rosidl_typesupport.git 0e03d18809cb08215877ff856a91
https://github.com/micro-ROS/rcutils 500ee3fcb16bf6260453c75b50c3d7785d724443
https://github.com/micro-ROS/micro_ros_utilities c829971bd33ac1f14a94aa722476110b4b59eaf9
https://gitlab.com/micro-ROS/ros_tracing/ros2_tracing.git/ 07ae5aa5c456f887f2aa82896e207a3209309a50
https://github.com/ros2/rclc 88cd65c27f6e45ea53c653231f59882bd0995bed
https://github.com/ros2/rclc 2668550d040fe70906a37232c2a5f689970c2d8d
https://github.com/micro-ROS/micro_ros_msgs.git c8af6d4f246d1b324e6578ec967c8ddc1f4093d5
https://github.com/ros-controls/control_msgs 11fdcdf76434d8ca9047787d17add4e18f56e9d6
https://github.com/ros2/rcl_interfaces.git c5d0a20150533a6cb93d5dcbd6e27cea9300aa6e
Expand Down
Binary file modified src/cortex-m0plus/libmicroros.a
Binary file not shown.
Binary file modified src/cortex-m3/libmicroros.a
Binary file not shown.
Binary file modified src/cortex-m7/fpv5-d16-softfp/libmicroros.a
Binary file not shown.
Binary file modified src/cortex-m7/fpv5-sp-d16-softfp/libmicroros.a
Binary file not shown.
Binary file modified src/imxrt1062/fpv5-d16-hard/libmicroros.a
Binary file not shown.
Binary file modified src/mk20dx256/libmicroros.a
Binary file not shown.
Binary file modified src/mk64fx512/fpv4-sp-d16-hard/libmicroros.a
Binary file not shown.
28 changes: 28 additions & 0 deletions src/rclc/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,34 @@ rclc_client_init_best_effort(
const rosidl_service_type_support_t * type_support,
const char * service_name);

/**
* Creates an rcl client with defined QoS
*
* * <hr>
* Attribute | Adherence
* ------------------ | -------------
* Allocates Memory | Yes (in RCL)
* Thread-Safe | No
* Uses Atomics | No
* Lock-Free | Yes
*
* \param[inout] client pointer to zero_initialized rcl_client_t
* \param[in] node pointer to an initialized rcl node
* \param[in] type_support the message data type
* \param[in] service_name the name of service topic
* \param[in] qos_profile the qos of the topic
* \return `RCL_RET_OK` if successful
* \return `RCL_ERROR` (or other error code) if an error has occurred
*/
RCLC_PUBLIC
rcl_ret_t
rclc_client_init(
rcl_client_t * client,
const rcl_node_t * node,
const rosidl_service_type_support_t * type_support,
const char * service_name,
const rmw_qos_profile_t * qos_profile);

#if __cplusplus
}
#endif
Expand Down
24 changes: 24 additions & 0 deletions src/rclc/executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,30 @@ rclc_executor_remove_guard_condition(
rclc_executor_t * executor,
const rcl_guard_condition_t * guard_condition);

/**
* The executor prepare function prepare the waitset of the executor if
* it is invalid. Does nothing if a valid waitset is already prepared.
*
* Memory is dynamically allocated within rcl-layer, when DDS queue is accessed with rcl_wait_set_init()
*
* <hr>
* Attribute | Adherence
* ------------------ | -------------
* Allocates Memory | Yes
* Thread-Safe | No
* Uses Atomics | No
* Lock-Free | Yes
*
*
* \param [inout] executor pointer to initialized executor
* \return `RCL_RET_OK` if executor prepare operation was successful
* \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer
* \return `RCL_RET_ERROR` if any other error occured
*/
RCLC_PUBLIC
rcl_ret_t
rclc_executor_prepare(
rclc_executor_t * executor);

/**
* The spin-some function checks one-time for new data from the DDS-queue.
Expand Down
28 changes: 28 additions & 0 deletions src/rclc/publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,34 @@ rclc_publisher_init_best_effort(
const rosidl_message_type_support_t * type_support,
const char * topic_name);

/**
* Creates an rcl publisher with defined QoS
*
* * <hr>
* Attribute | Adherence
* ------------------ | -------------
* Allocates Memory | Yes (in RCL)
* Thread-Safe | No
* Uses Atomics | No
* Lock-Free | Yes
*
* \param[inout] publisher a zero_initialized rcl_publisher_t
* \param[in] node the rcl node
* \param[in] type_support the message data type
* \param[in] topic_name the name of published topic
* \param[in] qos_profile the qos of the topic
* \return `RCL_RET_OK` if successful
* \return `RCL_ERROR` (or other error code) if an error has occurred
*/
RCLC_PUBLIC
rcl_ret_t
rclc_publisher_init(
rcl_publisher_t * publisher,
const rcl_node_t * node,
const rosidl_message_type_support_t * type_support,
const char * topic_name,
const rmw_qos_profile_t * qos_profile);

#if __cplusplus
}
#endif
Expand Down
28 changes: 28 additions & 0 deletions src/rclc/service.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,34 @@ rclc_service_init_best_effort(
const rosidl_service_type_support_t * type_support,
const char * service_name);

/**
* Creates an rcl service with defined QoS
*
* * <hr>
* Attribute | Adherence
* ------------------ | -------------
* Allocates Memory | Yes (in RCL)
* Thread-Safe | No
* Uses Atomics | No
* Lock-Free | Yes
*
* \param[inout] service a zero_initialized rcl_service_t
* \param[in] node pointer to an initialized rcl node
* \param[in] type_support type of the request message
* \param[in] service_name the name of service topic
* \param[in] qos_profile the qos of the topic
* \return `RCL_RET_OK` if successful
* \return `RCL_ERROR` (or other error code) if an error has occurred
*/
RCLC_PUBLIC
rcl_ret_t
rclc_service_init(
rcl_service_t * service,
const rcl_node_t * node,
const rosidl_service_type_support_t * type_support,
const char * service_name,
const rmw_qos_profile_t * qos_profile);

#if __cplusplus
}
#endif
Expand Down
29 changes: 29 additions & 0 deletions src/rclc/subscription.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,35 @@ rclc_subscription_init_best_effort(
const rosidl_message_type_support_t * type_support,
const char * topic_name);


/**
* Creates an rcl subscription with defined QoS
*
* * <hr>
* Attribute | Adherence
* ------------------ | -------------
* Allocates Memory | Yes (in RCL)
* Thread-Safe | No
* Uses Atomics | No
* Lock-Free | Yes
*
* \param[inout] subscription - a zero-initialized rcl_subscription_t
* \param[in] node the rcl node
* \param[in] type_support the message data type
* \param[in] topic_name the name of subscribed topic
* \param[in] qos_profile the qos of the topic
* \return `RCL_RET_OK` if successful
* \return `RCL_ERROR` (or other error code) if an error occurred
*/
RCLC_PUBLIC
rcl_ret_t
rclc_subscription_init(
rcl_subscription_t * subscription,
rcl_node_t * node,
const rosidl_message_type_support_t * type_support,
const char * topic_name,
const rmw_qos_profile_t * qos_profile);

#if __cplusplus
}
#endif
Expand Down