Ask Your Question

robot_upstart not working

asked 2019-04-26 19:30:48 -0500

hardyn gravatar image

updated 2019-04-26 19:45:40 -0500

I am using robot_upstart 0.3.0 for Kinetic, on Ubuntu 16.04.06. After performing the following command:

rosrun robot_upstart install --logdir $HOME/.ros/log --user $USER --provider systemd --symlink $ROS_PROJECT/launch/start_vehicle.launch

It appears to work:

Installing the service /lib/systemd/systemd Preparing to install files to the following paths: /etc/ros/kinetic/project.d/.installed_files /etc/ros/kinetic/project.d/start_vehicle.launch /etc/systemd/system/ /lib/systemd/system/project.service /usr/sbin/project-start /usr/sbin/project-stop Now calling: /usr/bin/sudo /opt/ros/kinetic/lib/robot_upstart/mutate_files Filesystem operation succeeded.

The systemd service is restarted using:

sudo systemctl daemon-reload

But when the service is attempted to be run, the follow error is issued (<> was performed by me and is obscuring the project name):

Failed to start <project>.service: Unit <project>.service not found.

And when the product is attempted to be removed, the follow error is issued:

Job not found, nothing to remove.

Basically, I need some help in trying to figure out what is going wrong, as there are no error produced, and the install appeared to be successful.

Thanks in advance,

Update 1: * It seems to start to project properly automatically after a reboot, but the start/stop commands do not seem to work *

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-04-26 19:59:43 -0500

hardyn gravatar image

The package name contains an underscore. "robot_upstart install" seems to be truncating characters after the underscore and inclusive of the underscore. eg:

"project_ext" is being created as service "project"

So now that I understand what is going on, does anybody have an idea of how to retain the underscore?

edit flag offensive delete link more


Add a --job $ROS_PROJECT then the job name is not truncated

Not sure why this is here but I think this is where it happens

job_name = args.job or pkg.split('_', 1)[0]

borgcons gravatar image borgcons  ( 2019-04-27 01:19:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-04-26 19:30:48 -0500

Seen: 324 times

Last updated: Apr 26 '19