I use robot_upstart to start the robot.In the startup.launch file ,I launch only one node which I called myrobot_node
. Here is the node content.. In this node, l launch a launchfile. However , I can see all nodes are running when I userosnode list
.But when I test the nodes , I find some are not working well .For example , in one node,
I use system("echo 666666 | sudo -S reboot")
to reboot the system .However ,it didn't respond. And if I rosrun robot_upstart myrobot_node
directly,things seems ok. what's wrong ? is there any problem with the function system()
?
Originally posted by Tomas yuan on ROS Answers with karma: 56 on 2018-03-19
Post score: 0
Original comments
Comment by jayess on 2018-03-19:
Please don't use a screenshot to post text. Images are not searchable and people cannot copy and paste your code from an image. Please update your question with a copy and paste (using the preformatted text 101010
button). http://wiki.ros.org/Support