ros2genmsg: ERROR building package

16 visualizaciones (últimos 30 días)
Kenta Okamoto
Kenta Okamoto el 1 de Jun. de 2021
Respondida: Jagadeesh Konakalla el 11 de En. de 2022
I want to create ROS2 custum message(px4_msgs).
>> ros2genmsg("C:\ros2pkg\custom_msgs",'BuildConfiguration','fasterruns')
フォルダー 'C:/ros2pkg/custom_msgs' のメッセージ ファイルを識別しています。.完了。
フォルダー 'C:/ros2pkg/custom_msgs' のメッセージ ファイルを検証しています。..完了。
[1/1] カスタム メッセージ パッケージ用の MATLAB インターフェイスを生成しています... 完了。
フォルダー 'C:/ros2pkg/custom_msgs/matlab_msg_gen/win64' の colcon ビルドを実行しています。
ビルドが進行中です。これには数分かかることがあります...エラー: ros.internal.ROSProjectBuilder/buildPackage (行 534)
Error building package: **********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.9.36
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86_x64'
.
エラー: ros2genmsg (241)
buildPackage(builder, [], ' --merge-install', colconMakeArgs); %other messages might need to
be present in the same directory
I recieved these errors above.
I updated MATLAB2021a and using python 2.7.
I'm also using visual studio 2017.
How can I do ?
  6 comentarios
Steven Lord
Steven Lord el 29 de Jun. de 2021
Kenta Okamoto had flagged this "This solved problem". Please use flags to bring a problem with the answer to the attention of the administrators and the MVPs. Use comments or marking an answer as the Accepted answer to indicate that it has answered the question.
Rik
Rik el 11 de En. de 2022
@Jagadeesh Konakalla Please post your comment as answer so Kenta (or someone else) can mark it as accepted answer.

Iniciar sesión para comentar.

Respuestas (1)

Jagadeesh Konakalla
Jagadeesh Konakalla el 11 de En. de 2022
Uninstalling different versions of python solved the problem.

Categorías

Más información sobre Publishers and Subscribers en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by