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

Windows ROS ros-melodic-moveit install fail

asked 2019-12-29 04:49:14 -0600

Johnny Su gravatar image

updated 2019-12-29 04:57:59 -0600

gvdhoorn gravatar image

When choco upgrade ros-melodic-moveit -y

Error happened

Chocolatey v0.10.15
Upgrading the following packages:
ros-melodic-moveit
By upgrading you accept licenses for the packages.
ros-melodic-moveit is not installed. 

Installing...
Progress: Downloading ros-melodic-moveit 20190729.1... 100%
Progress: Downloading ros-melodic-moveit 20190729.1... 100%
ros-melodic-moveit v20190729.1
ros-melodic-moveit package files upgrade completed. Performing other installation steps.
Extracting 64-bit C:\ProgramData\chocolatey\lib\ros-melodic-moveit\tools\drop.zip to c:\opt\ros...
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\bin\cpp_common.dll
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\bin\rosconsole.dll
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\bin\rosconsole_backend_interface.dll
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\bin\rosconsole_log4cxx.dll
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\bin\roscore.exe
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\bin\roscpp.dll
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\bin\roscpp_serialization.dll
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\bin\rosmaster.exe
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\bin\rostime.dll
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\bin\xmlrpcpp.dll
ERROR: Can not delete output file : 存取被拒。 : c:\opt\ros\melodic\x64\lib\rosout\rosout.exe
ERROR: 7-Zip encountered a fatal error while extracting the files. This is most likely an issue with the 'ros-melodic-moveit' package and not with Chocolatey itself. Please follow up with the package maintainer(s) directly.
The upgrade of ros-melodic-moveit was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\ros-melodic-moveit\tools\chocolateyInstall.ps1'.
 See log for details.
This is try 1/3. Retrying after 300 milliseconds.
 Error converted to warning:
 (5) 存取被拒。: [\\?\C:\ProgramData\chocolatey\lib-bad\ros-melodic-moveit]
This is try 2/3. Retrying after 400 milliseconds.
 Error converted to warning:
 (5) 存取被拒。: [\\?\C:\ProgramData\chocolatey\lib-bad\ros-melodic-moveit]
Maximum tries of 3 reached. Throwing error.
Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
 - ros-melodic-moveit (exited 2) - Error while running 'C:\ProgramData\chocolatey\lib\ros-melodic-moveit\tools\chocolateyInstall.ps1'.
 See log for details.
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2019-12-31 18:02:01 -0600

OoeyGUI gravatar image

Hello @Johnny, The installer does not attempt to shut down a running ROS instance before upgrading. Please do this manually and attempt to reinstall.

I created this issue to track adding detection logic to the installer - https://github.com/ms-iot/ROSOnWindow....

edit flag offensive delete link more
0

answered 2021-12-06 10:13:52 -0600

osilva gravatar image

I know this is a almost 2 years later, but there is a recommended way to install MoveIt in ROS on Windows for Melodic and Noetic in the following tutorial: https://ms-iot.github.io/ROSOnWindows...

Setup:

mkdir c:\opt\chocolatey
set ChocolateyInstall=c:\opt\chocolatey
choco source add -n=ros-win -s="https://aka.ms/ros/public" --priority=1
choco upgrade ros-melodic-moveit -y --execution-timeout=0

Create workspace for MoveIt Tutorials:

:: activate ROS environment
c:\opt\ros\noetic\x64\setup.bat

:: checkout MoveIt tutorial packages
mkdir c:\moveit_ws\src
cd c:\moveit_ws\src

git clone https://github.com/ms-iot/moveit_tutorials.git -b 1.1.1
git clone https://github.com/ros-planning/panda_moveit_config.git -b melodic-devel
git clone https://github.com/frankaemika/franka_ros-release -b release/kinetic/franka_description

:: build packages
cd c:\moveit_ws
catkin_make

Sourcing:

c:\moveit_ws\devel\setup.bat
edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2019-12-29 04:49:14 -0600

Seen: 675 times

Last updated: Dec 06 '21