robot_upstart: nodes don't work well
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 use
rosnode list
.But when I test the nodes , I find some are not working well .For example , in one node,
I usesystem("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()
?
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