Custom package not found when running simulation application

0

Hello,
I am new to AWS Robomaker and I am trying to create a simulation application + simulation job from an existing ROS workspace. I managed to upload all my packages, build them with colcon and bundle them. But when I create a simulation application using this same bundle and try to run a simulation job, it inevitably fails. The log file shows me that my packages and launch files are not found (launch_file.launch is neither a launch file in package package_name nor is package_name a launch file name), even though I can see them when running rospack list in my Cloud9 environment. Is there something I'm missing to make them actually usable in the simulation application?
Thanks in advance!

Edited by: thibaultN on Apr 19, 2019 6:17 AM

gefragt vor 5 Jahren322 Aufrufe
3 Antworten
0
Akzeptierte Antwort

Hi,

I met a similar question. When I use rospack find my_package, it shows my package is refer to "catkin_ws/install/my_package/share /my_package". And, in that directory, it did not include the launch folder. I think the local_setup.bash built by colcon points packages in install folder (not the src folder).
The way I solved is to add Install command in CMakeList to put executive files, launch folds (or other folders) to share folder. For instance, command likes:

## Mark other folders (e.g. launch and world folder)
install(DIRECTORY 
  config
  launch
  meshes
  rviz
  urdf
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

Hope this help.

Best,

Edited by: NexCOBOT on Apr 19, 2019 10:34 AM

beantwortet vor 5 Jahren
0

This is correct, for more information see the “Missing Install Directives in CMakeLists.txt" section in our building and bundling blog post: https://aws.amazon.com/blogs/opensource/building-bundling-ros-app-aws-robomaker/

AWS
beantwortet vor 5 Jahren
0

Hello,
Thanks a lot for the solution! This was indeed the problem, and adding the correct CMake install dependencies fixed it

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen