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

woking in ROS noetic python3 #74

Open
abhishekbera86 opened this issue Jun 20, 2022 · 3 comments
Open

woking in ROS noetic python3 #74

abhishekbera86 opened this issue Jun 20, 2022 · 3 comments

Comments

@abhishekbera86
Copy link

I am using raspberrypi 4 ubuntu mate 20 ROS NOETIC. How do we upgrade it to ROS NOETIC from ROS melodic as I am having issues with python 2 dependencies? I installed the ual_backend_mavros pkg but having issue while launching the server.launch. I receives the below error:

NODES
/
run_mavros_1 (px4_bringup/run_mavros.py)
ual (ual_backend_mavros/ual_backend_mavros_server)

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

setting /run_id to e3234496-f094-11ec-abee-b7c2d3a28b27
process[rosout-1]: started with pid [81037]
started core service [/rosout]
process[run_mavros_1-2]: started with pid [81044]
process[ual-3]: started with pid [81045]
Traceback (most recent call last):
File "/home/drone/catkin_ws/src/grvc-ual/px4_bringup/scripts/run_mavros.py", line 5, in
import rospkg
ImportError: No module named rospkg
[run_mavros_1-2] process has died [pid 81044, exit code 1, cmd /home/drone/catkin_ws/src/grvc-ual/px4_bringup/scripts/run_mavros.py -id=1 -mode=serial -fcu_url=udp://:14550@localhost:14556 -gcs_url= -rtcm_topic= -remap_tfs=true -mavros_config_pkg=px4_bringup __name:=run_mavros_1 __log:=/home/drone/.ros/log/e3234496-f094-11ec-abee-b7c2d3a28b27/run_mavros_1-2.log].
log file: /home/drone/.ros/log/e3234496-f094-11ec-abee-b7c2d3a28b27/run_mavros_1-2*.log
[ INFO] [1655728283.810805777]: BackendMavros constructor with id [1]

Is there any specific installation instructions for ROS Noetic?

@manfer33
Copy link
Member

There is not an official implementation for Noetic for now.
You can try to use 2to3 to transform each python 2 script to python 3 or set python 2 as default python in your computer (python 3 is the default python version in Ubuntu 20).

@AntoineRichard
Copy link

AntoineRichard commented Dec 20, 2022

Hey Abhishek,

I have a fork of GRVC-UAL running on Noetic, I only tested the Mavlink and SITL PX4.

git clone https://github.com/AntoineRichard/grvc-ual-3.1-noetic.git grvc-ual

With PX4 v1.10.2 there is an issue with it not being able to deal with Gazebo 11. Here is a fork of v1.10.2 that supports gazebo 11:

git clone https://github.com/AntoineRichard/PX4-V1.10.2-gz11.git Firmware

When compiling PX4, it will require Jinja2 that might be incompatible with the version of markupsafe you have.
This can be solved by downgrading it to version 2.0.1 (like so : python3 -m pip install markupsafe==2.0.1). This should be done just after installing Jinja when following this setup guide:

https://github.com/grvcTeam/grvc-ual/wiki/Setup-instructions:-PX4-SITL.

@abhishekbera86
Copy link
Author

abhishekbera86 commented Dec 20, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants