Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rolling Source Build Issues (FTC, so it may be just me...) #1217

Closed
jeoseo opened this issue May 6, 2022 · 12 comments
Closed

Rolling Source Build Issues (FTC, so it may be just me...) #1217

jeoseo opened this issue May 6, 2022 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@jeoseo
Copy link
Contributor

jeoseo commented May 6, 2022

Description

Difficulties actually installing and properly running examples on Rolling, with many problems leading to open issues.

Your environment

  • ROS Distro: Rolling
  • OS Version: Ubuntu 22.04
  • Source or Binary build? Source, main branch

Steps to reproduce

Created a fresh installation of Ubuntu 22.04,

Follow the instructions from https://moveit.ros.org/install-moveit2/source/, except from Ubuntu 22.04 because Rolling no longer works on 20.04.

Expected behaviour

I should be able to follow the instructions written to be able to build from source and be able to reproduce results from other issues, such as this one: #1069.

Actual behaviour

Building Moveit works fine, other than the deprecation warnings that appear here: #1106. However, when trying to run the tutorials package,

[ERROR] [launch]: Caught exception in launch (see debug for traceback): Caught exception when trying to load file of format [py]: No module named 'moveit_configs_utils' 

The package is in the python path, and running ros2 pkg prefix moveit_configs_utils returns the package location correctly. For some reason, other python packages like launch_param_builder are successfully imported. For now, I used the hack fix below to get around this as I was not able to find a single difference in the way launch_param_builder and moveit_configs_utils were built and installed

import sys
sys.path.append('/home/jeoseo/ws_moveit2/src/moveit2/moveit_configs_utils')

Trying to run the launch file now gives the following issue, which is open here: ros2/launch#588.

[ERROR] [launch]: Caught exception in launch (see debug for traceback): stdoutstderr is not a valid standard output config i.e. "screen", "log" or "both"  

I first tried using the workaround mentioned in the above issue, which is to build ROS2 from source using a specific commit of launch, until a fix is implemented. I ran into more issues building ROS2 from source (colcon/colcon-core#506 is one of them, the other is that ament_lint also has a module import error), at which point I gave up and just removed the offending output config to be able to run even just demo code. I have only had experience using ROS melodic/ other old versions before, so I would appreciate some guidance as to how I should be working with packages from ROS Rolling so I can contribute to more recent developement.

@jeoseo jeoseo added the bug Something isn't working label May 6, 2022
@stephanie-eng
Copy link
Contributor

Are you trying to run the Quickstart in Rviz demo.launch.py tutorial? This may be related to your launch issue: moveit/moveit2_tutorials#357

@jeoseo
Copy link
Contributor Author

jeoseo commented May 6, 2022

Yup, that's what I did for the 2nd error.

@JafarAbdi JafarAbdi self-assigned this May 9, 2022
@vatanaksoytezer
Copy link
Contributor

@jeoseo are you still having similar issues? moveit/moveit2_tutorials#357 has been merged, so I'm assuming it should be fine now, can you please confirm?

@jeoseo
Copy link
Contributor Author

jeoseo commented May 17, 2022

I'm still having the first issue where moveit_configs_utils isn't imported without me adding the hack fix.

@vatanaksoytezer
Copy link
Contributor

@jeoseo That's interesting, I'm not able to reproduce this unfortunately. Can you try cleaning your workspace, building and sourcing again?

@henningkayser
Copy link
Member

@jeoseo any progress on this?

@GradyM2M
Copy link

GradyM2M commented Jun 6, 2022

@jeoseo Hi, I have the same issue, any progress on this?

@vatanaksoytezer
Copy link
Contributor

@GradyM2M I don't think the error should exist anymore do you mind sharing your errors and environment?

@GradyM2M
Copy link

GradyM2M commented Jun 6, 2022

my environment:
ROS Distro: Humble
OS Version: Ubuntu 22.04
Source, main branch
Screenshot from 2022-06-06 19-18-29

@vatanaksoytezer
Copy link
Contributor

@GradyM2M Seems like you have an earlier version of srdfdom or using a release version. Can you try removing srdfdom via apt-get remove ros-humble-srdfdom and source build the latest version of srdfdom using ros2 branch of https://github.com/ros-planning/srdfdom/tree/ros2 in your workspace?

@mechwiz
Copy link
Contributor

mechwiz commented Jun 9, 2022

I had a similar issue when using rolling instead of humble (even when the source build of srdfdom was in my workspace) and running apt-get remove ros-rolling-srdfdom and recompiling fixed the issue for me

@sjahr
Copy link
Contributor

sjahr commented Dec 9, 2022

@jeoseo I am closing this issue for now because I think it is outdated by now. Please re-open it or create a new one if you`re having still troubles

@sjahr sjahr closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants