Skip to content
Snippets Groups Projects
Commit 5e7dc81e authored by root's avatar root
Browse files

Updated scripts

parent 6aee5211
No related branches found
No related tags found
1 merge request!1Emotion recognition
File added
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
## to the 'chatter' topic ## to the 'chatter' topic
import rospy import rospy
from genEmotions import get_emotion
from std_msgs.msg import String from std_msgs.msg import String
def talker(): def talker():
...@@ -44,7 +45,7 @@ def talker(): ...@@ -44,7 +45,7 @@ def talker():
rospy.init_node('talker', anonymous=True) rospy.init_node('talker', anonymous=True)
rate = rospy.Rate(10) # 10hz rate = rospy.Rate(10) # 10hz
while not rospy.is_shutdown(): while not rospy.is_shutdown():
hello_str = "hello goodbye %s" % rospy.get_time() hello_str = get_emotion()
rospy.loginfo(hello_str) rospy.loginfo(hello_str)
pub.publish(hello_str) pub.publish(hello_str)
rate.sleep() rate.sleep()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment