-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add translator package #461
base: master
Are you sure you want to change the base?
Add translator package #461
Conversation
self.param_srv = Server(ROSTranslatorConfig, self.param_callback) | ||
self.pub = rospy.Publisher('~output_text', String, queue_size=1) | ||
self.sub = rospy.Subscriber('~input_text', String, self.callback) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about adding actionlib server?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think actionlib server is not necessary since if we just want to translate some text in one node. It is enough to use deep-translator
library directory.
23d77cc
to
9c19030
Compare
This PR add a ROS package for language translation.
This package uses Python package deep-translator as a backend.
Demo
And then, please input any text to
xterm
prompt. You will get a translated text.Input any text >沙羅双樹の花の色、盛者必衰の理をあらはす