Ask Your Question
0

rospy on aarch64, ros-melodic

asked 2021-02-18 07:26:12 -0600

igor71 gravatar image

Can rospy be installed on linux aarch64 devices (e.g. nvidia jetson agx xavier) running ros melodic? I thought it would be preinstalled with ros (/usr/lib/python2.7/dist-packages/) but apparently it is not so was going to install from conda-forge but the one on there is not compatible with aarch64. Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-02-18 09:00:32 -0600

gvdhoorn gravatar image

updated 2021-02-22 08:08:06 -0600

I thought it would be preinstalled with ros (/usr/lib/python2.7/dist-packages/)

ROS Melodic Python packages are not installed in /usr/lib/python2.7/..., but in /opt/ros/melodic/lib/python2.7/... (/opt/ros/melodic is just a prefix to the otherwise FHS compliant location of files).

Are you sure you installed ROS Melodic correctly, and not the UpstreamPackages?

edit flag offensive delete link more

Comments

Thank you for the answer. ROS melodic python packages were indeed installed in /opt/ros/melodic/lib/... and I have managed to successfully import them. Regarding installation I believe it was installed correctly as I followed the official installation guide on the ROS website.

I think I assumed the ros packages would be installed in either the default python path (/usr/lib/python2.7/dist-packages/) or the path to the active conda environment and didnt realize there was another ros python path (/opt/ros/melodic/lib/). Anyways that really helped, thank you!

igor71 gravatar image igor71  ( 2021-02-22 07:09:50 -0600 )edit

I think I assumed the ros packages would be installed in either the default python path (/usr/lib/python2.7/dist-packages/) or the path to the active conda environment and didnt realize there was another ros python path (/opt/ros/melodic/lib/).

there is no "another ros python path": Python packages managed by apt, and built by the ROS buildfarm get installed in the default location for those packages (which happens to be prefixed by /opt/ros/melodic).

Conda environments don't really influence where apt installs Python packages.

gvdhoorn gravatar image gvdhoorn  ( 2021-02-22 08:07:03 -0600 )edit

Could you please mark the question as answered by ticking the checkmark (✓) to the left of the answer if you feel it has been answered? Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2021-02-22 08:07:34 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2021-02-18 07:22:06 -0600

Seen: 18 times

Last updated: Feb 22