Python application under ubuntu18.04 ROS2 environment

This forum covers issues concerning multiple software products.
Post Reply
giles
Posts: 8
Joined: Tue 22. Dec 2020, 10:30

Python application under ubuntu18.04 ROS2 environment

Post by giles » Wed 6. Jan 2021, 15:30

Hi,
Now, we are compiling CAN Communication Python code (PCANBasic.py is called) under ubuntu-ROS2 environment, but the 'ModuleNotFoundError' error is occurred as shown in below picture.
And, can you please provide the PCANBasic library for the python application under the environment of ubuntu-ROS2? Thanks for your great support.

IMG_20210106_222404_edit_310788960449973(1).jpg
IMG_20210106_222404_edit_310788960449973(1).jpg (3.28 MiB) Viewed 365 times

M.Heidemann
Sales & Support
Sales & Support
Posts: 405
Joined: Fri 20. Sep 2019, 13:31

Re: Python application under ubuntu18.04 ROS2 environment

Post by M.Heidemann » Thu 7. Jan 2021, 13:44

Hello,

is this the same machine, that you sucessfully ran your software on (see previous) thread
or is this a software migration?

Is the PCAN-Linux driver package compiled and installe don this machine?

Best Regards

Marvin

giles
Posts: 8
Joined: Tue 22. Dec 2020, 10:30

Re: Python application under ubuntu18.04 ROS2 environment

Post by giles » Tue 12. Jan 2021, 02:07

Hi Sir, I still use the same PC for application under ROS2 environment, but some unexpected situations are occurred.
And I think the PCAN driver can work normally now as shown in below picture.
And I compile the code with 'PCANBasic.py' module directly with the method of: https://index.ros.org/doc/ros2/Tutorial ... ubscriber/
IMG_20210112_082233.jpg
IMG_20210112_082233.jpg (2.69 MiB) Viewed 243 times
I have tried lots of times, but still can not solve this problem, thanks very much for your great support !

M.Heidemann
Sales & Support
Sales & Support
Posts: 405
Joined: Fri 20. Sep 2019, 13:31

Re: Python application under ubuntu18.04 ROS2 environment

Post by M.Heidemann » Tue 12. Jan 2021, 08:38

Hello,

Please understand that we are not affiliated with ROS2 and can only give limited support regarding its usage, we are not familiar with the Workflow in ROS2.

So to confirm both PCAN-View and you python script as a standalone do work as expected?

This then seems to be an issue regarding how the ROS-package was set up, you should inquire with the ROS2-community
regarding this issue.

For further questions feel free to contact us again.

Best Regards

Marvin

Post Reply