This repository contains ROS 2 packages that can communicate with mros2, which is an agent-less and lightweight runtime environment for ROS 2 nodes onto embedded devices.
Please also check for more details about example applications on the embedded device.
- Description:
- (The mros2 node on the embedded device publishes
string
(std_msgs::msg::String
) message to/to_linux
topic.) - The
mros2_echoreply
node on the host subscribesstring
(std_msgs::msg::String
) message from/to_linux
topic, and then its node publishes the message as it is to/to_stm
topic. - (The mros2 node on the embedded device will subscribes the message as the echoback.)
- (The mros2 node on the embedded device publishes
- Host operation:
$ ros2 run mros2_echoreply_string echoreply_node
- mros2 application on the embedded device:
- Description:
- The
pub_mros2
node on the host publishesstring
(std_msgs::msg::String
) message to/to_stm
topic. - (The mros2 node on the embedded device will echoreply this message as it is.)
- The
mros2_sub
node on the host subscribesstring
message from/to_linux
topic.
- The
- Host operation:
- at first terminal:
$ ros2 run mros2_echoback_string sub_node
- and then, at second terminal:
$ ros2 run mros2_echoback_string pub_node
- or, at one terminal:
$ ros2 launch mros2_echoback_string pubsub.launch.py
- at first terminal:
- mros2 application on the embedded device:
- Description:
- The
mros2_sub
node on the host subscribesfloat32
(std_msgs::msg::Float32
) message from/to_linux
topic.
- The
- Host operation:
$ ros2 run mros2_sub_float32 sub_node
- or,
$ ros2 launch mros2_sub_float32 sub.launch.py
- mros2 application on the embedded device:
- Description:
- The
pub_mros2
node on the host publishesuint16
(std_msgs::msg::UInt16
) message to/to_stm
topic.
- The
- Host operation:
$ ros2 run mros2_pub_uint16 pub_node
- or,
$ ros2 launch mros2_pub_uint16 pub.launch.py
- mros2 application on the embedded device:
- Description:
- The
sub_twist
node on the host subscribesTwist
(geometry_msgs::msg::Twist
) message from/cmd_vel
topic.
- The
- Host operation:
$ ros2 run mros2_sub_twist sub_node
- or,
$ ros2 launch mros2_sub_twist sub.launch.py
- mros2 application on the embedded device:
- Description:
- The
pub_pose
node on the host publishesPose
(geometry_msgs::msg::Pose
) message to/cmd_vel
topic.
- The
- Host operation:
$ ros2 run mros2_pub_pose pub_node
- or,
$ ros2 launch mros2_pub_pose launch.py
- mros2 application on the embedded device:
- Description:
- (The mros2 node on the embedded device publishes
string
(std_msgs::msg::String
) message to/to_linux
topic.) - The
sub_long_string_pub_crc
node on the host subscribesstring
(geometry_msgs::msg::String
) message from/to_linux
topic, and then its node publishes the CRC32 as a u_int32 (std_msgs::msg::UInt32
) value to/to_stm
topic.
- (The mros2 node on the embedded device publishes
- Host operation:
$ ros2 run mros2_sub_long_string_pub_crc sub_long_string_pub_crc_node
- or,
$ ros2 launch mros2_sub_long_string_pub_crc subpub.launch.py
- mros2 application on the embedded device: