ReconCycle / urdf_from_step

ROS package for creating URDF format from specialy prepared STEP/STP format.
BSD 3-Clause "New" or "Revised" License
22 stars 2 forks source link

Tutorial and example notes #10

Open gaspersavle opened 1 year ago

gaspersavle commented 1 year ago

1. Installation manual

#### 2.2. Docker pull approach
- When running `docker run  -v ~/input_step_files:/input_step_files -v ~/output_ros_urdf_packages:/output_ros_urdf_packages  --rm ghcr.io/reconcycle/urdf-from-step:latest roslaunch urdf_from_step build_urdf_from_step.launch step_file_path:="/input_step_files/robot_arm.step" urdf_package_name:="robot_arm"` it throws this error:
```bash
gaspers@reconcycle-dev2:~/Desktop$ docker run  -v ~/input_step_files:/input_step_files -v ~/output_ros_urdf_packages:/output_ros_urdf_packages  --rm ghcr.io/reconcycle/urdf-from-step:latest roslaunch urdf_from_step build_urdf_from_step.launch step_file_path:="/input_step_files/robot_arm.step" urdf_package_name:="robot_arm"
[INFO] [1697632983.689546]: Creating ROS package:
[INFO] [1697632983.689889]: robot_arm
Traceback (most recent call last):
  File "/ros_ws/devel/lib/urdf_from_step/create_urdf.py", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/ros_ws/src/urdf_from_step/scripts/create_urdf.py", line 514, in <module>
    createPackageROS(package_name,output_folder_path)
  File "/ros_ws/src/urdf_from_step/scripts/create_urdf.py", line 435, in createPackageROS
    create_package_files(target_path=package_path,
  File "/usr/lib/python3/dist-packages/catkin_pkg/package_templates.py", line 216, in create_package_files
    _safe_write_files(newfiles, target_path)
  File "/usr/lib/python3/dist-packages/catkin_pkg/package_templates.py", line 177, in _safe_write_files
    raise ValueError('File exists: %s' % target_file)
ValueError: File exists: /output_ros_urdf_packages/robot_arm/package.xml
================================================================================REQUIRED process [urdf_creator-2] has died!
process has died [pid 186, exit code 1, cmd /ros_ws/devel/lib/urdf_from_step/create_urdf.py __name:=urdf_creator __log:=/root/.ros/log/e044f768-6db3-11ee-93a9-0242ac110003/urdf_creator-2.log].
log file: /root/.ros/log/e044f768-6db3-11ee-93a9-0242ac110003/urdf_creator-2*.log
Initiating shutdown!
================================================================================
... logging to /root/.ros/log/e044f768-6db3-11ee-93a9-0242ac110003/roslaunch-6111bb242b6c-1.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://6111bb242b6c:45209/

SUMMARY
========

PARAMETERS
 * /rosdistro: noetic
 * /rosversion: 1.15.14
 * /urdf_creator/output_folder_path: /output_ros_urdf_...
 * /urdf_creator/step_file_path: /input_step_files...
 * /urdf_creator/urdf_package_name: robot_arm

NODES
  /
    urdf_creator (urdf_from_step/create_urdf.py)

auto-starting new master
process[master]: started with pid [111]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to e044f768-6db3-11ee-93a9-0242ac110003
process[rosout-1]: started with pid [183]
started core service [/rosout]
process[urdf_creator-2]: started with pid [186]
[urdf_creator-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

After this process crashes, the /output_ros_urdf_packages/ directory is empty and i cannot continue the installation process

Rok-Pahic commented 1 year ago

Corrected and prepared for further testing.