ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

robot_upstart: nodes don't work well

asked 2018-03-19 20:04:22 -0500

Tomas yuan gravatar image

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.image description. 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 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()?

edit retag flag offensive close merge delete

Comments

3

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

jayess gravatar image jayess  ( 2018-03-19 22:29:17 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-03-19 22:52:01 -0500

130s gravatar image

Not really an answer though,

if I rosrun robot_upstart myrobot_node directly,things seems ok.

I don't think an executable called myrobot_node is available in robot_upstart package. On my computer I see:

$ rosrun robot_upstart  (here I press tab)
getifip       install       mklaunch      mkxacro       mutate_files  uninstall     
$ apt-cache policy ros-kinetic-robot-upstart 
ros-kinetic-robot-upstart:
  Installed: 0.2.2-0xenial-20180222-231517-0800

So, I can only assume you're using cutomized version of robot_upstart. If that's the case, no one can't really help you unless we have an access to its code (and even if we do have an access, looking at the cutomized code raises a bar for most of the people on this forum in general, so that the chance of you getting useful response will get slim).

That said, please try to make your question as general as possible. Then, share all the commands you ran and the output regarding installation you did using robot_upstart. Also the entire launch file where you include the node you cited.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-03-19 20:04:22 -0500

Seen: 554 times

Last updated: Mar 19 '18