Robotics StackExchange | Archived questions

ROS2 Migration Tools: how to create a mappings file

Hi! I'm trying to use the migration tools from https://github.com/awslabs/ros2-migration-tools##filling-the-mappings without much success. Surprisingly, my cursor becomes a + and I need to click 6 times!!! Then I get the following erros:

import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/408.
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/408.
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/408.
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/408.
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/408.
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/408.
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/408.
from: can't read /var/mail/clang.clang_parser
from: can't read /var/mail/Constants
from: can't read /var/mail/porting_tools.cmake_lists_porter
from: can't read /var/mail/porting_tools.package_xml_porter
from: can't read /var/mail/porting_tools.cpp_source_code_porter
from: can't read /var/mail/utilities
./ros_upgrader.py: line 17: syntax error near unexpected token `('
./ros_upgrader.py: line 17: `ROS1_PACKAGE_PATH = os.getenv(Constants.ROS1_PACKAGE_PATH)'

I tried with the Dockerfile added on this fork. Now seems to go further, but I get the error

FileNotFoundError: [Errno 2] No such file or directory: 'mapping/master_mappings.json'

The documentation explains how to create a mapping file, but without any example I'm completely lost about how to do it!

So does anyone succeeded using the tools? Can you provide an example mapping file?

Thanks a lot!

Asked by jorge on 2022-11-04 03:05:47 UTC

Comments

Answers