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
<launch> | |
<arg name="topic_name" default="/test_topic" /> | |
<arg name="message" default="Hello there!" /> | |
<node pkg="rostopic" type="rostopic" name="rostopic_pub_node" output="screen" args="pub $(arg topic_name) std_msgs/String 'data: $(arg message)'" /> | |
<node pkg="rostopic" type="rostopic" name="rostopic_echo_node" output="screen" args="echo $(arg topic_name)" /> | |
</launch> |
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
#! /usr/bin/env python | |
# remember to make this file executable (`chmod +x`) before trying to run it | |
import rospy | |
from std_srvs.srv import Trigger, TriggerResponse | |
def trigger_response(request): | |
return TriggerResponse( | |
success=True, | |
message="Hey, roger that; we'll be right there!" |
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
#! /usr/bin/env python | |
# remember to make this file executable (`chmod +x`) before trying to run it | |
import rospy | |
from std_srvs.srv import Trigger, TriggerResponse | |
def trigger_response(request): | |
return TriggerResponse( | |
success=True, | |
message="Hey, roger that; we'll be right there!" | |
) |