-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ichiro-its/feature/create-grpc-service
[Sprint 22 / PD-368] - [Feature] Create gRPC Service on Akushon ROS
- Loading branch information
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
syntax = "proto3"; | ||
|
||
package akushon_interfaces.proto; | ||
|
||
service Config { | ||
rpc GetConfig (Empty) returns (ConfigActions) {} | ||
|
||
rpc SaveConfig (ConfigActions) returns (Empty) {} | ||
|
||
rpc PublishSetJoints (SetJointsData) returns (Empty) {} | ||
|
||
rpc RunAction (ConfigRunAction) returns (Empty) {} | ||
|
||
rpc SetTorques (SetTorquesData) returns (Empty) {} | ||
|
||
rpc SubscribeCurrentJoints (Empty) returns (CurrentJoints) {} | ||
} | ||
|
||
message Empty {} | ||
|
||
message ConfigActions { | ||
string json_actions = 1; | ||
} | ||
|
||
message SetJointsData { | ||
int32 control_type = 1; | ||
string joints_actions = 2; | ||
} | ||
|
||
message ConfigRunAction { | ||
int32 control_type = 1; | ||
string action_name = 2; | ||
string json_action = 3; | ||
} | ||
|
||
message SetTorquesData { | ||
string ids = 1; | ||
bool torque_enable = 2; | ||
} | ||
|
||
message CurrentJoints { | ||
string msg_joints = 1; | ||
} |