Skip to content

tasada038/ros2_grpc_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ros2_grpc_server

GitHub stars GitHub forks GitHub issues GitHub license

Overview

This package is a server for bridging ROS 2 and gRPC.

Keywords: ROS 2, gRPC

Build and Run

First, run the following in the terminal:

cd ~/dev_ws
colcon build --packages-select ros2_grpc_server --cmake-args -DBUILD_CPP_SOURCE=OFF
. install/setup.bash
ros2 run ros2_grpc_server float32_server

Second, run the following in the terminal:

cd ~/dev_ws && . install/setup.bash
ros2 topic pub -r 1 /data std_msgs/msg/Float32 "{data: 5.0}"

Finally, run the following in the terminal:

cd ~/dev_ws/src/ros2_grpc_server/script && python3 grpc_client.py

grpc_ros2_sample

If you want to communicate only with gRPC, please execute the following.

cd ~/dev_ws
colcon build --packages-select ros2_grpc_serer

cd ~/dev_ws/src/ros2_grpc_server/build
cmake ..
make
./pose_server
./pose_client 0 2 1

grpc_cpp_sample

License

The source code is released under a MIT license.

About

This package is a server for bridging ROS 2 and gRPC.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages