grvc-ual icon indicating copy to clipboard operation
grvc-ual copied to clipboard

woking in ROS noetic python3

Open abhishekbera86 opened this issue 3 years ago • 3 comments

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?

abhishekbera86 avatar Jun 20 '22 12:06 abhishekbera86

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).

manfer33 avatar Jun 20 '22 13:06 manfer33

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.

AntoineRichard avatar Dec 20 '22 14:12 AntoineRichard

But bro, grvc ual with python 3 is not upgraded

On Tue, 20 Dec 2022 at 7:31 PM, AntoineRichard @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/grvcTeam/grvc-ual/issues/74#issuecomment-1359408819, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDBTYPYYQLKPDBTKQIDB23WOG34JANCNFSM5ZIZYMJQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Abhishek Bera

Research Associate,

SpaceR, SNT, University of Luxembourg

Contact No. : +352661313149

Email: @., a @.>@.***

Home page: https://aberagcect.wixsite.com/abhishekbera

abhishekbera86 avatar Dec 20 '22 14:12 abhishekbera86