robot_upstart not working
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/multi-user.target.wants/project.service
/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:
/lib/systemd/systemd
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 **
Asked by hardyn on 2019-04-26 19:30:48 UTC
Answers
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?
Asked by hardyn on 2019-04-26 19:59:43 UTC
Comments
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]
Asked by borgcons on 2019-04-27 01:19:22 UTC
Comments