ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

how can I load neural network with ros-melodic?

asked 2022-01-15 01:50:54 -0500

Hwang gravatar image

Hi I'm trying to combine UR5 robot with neural network.

I trained SAC with python3 and I hoped to load action obtained from SAC to apply it on ROS using python 2. Is there any way to enable it?

Before this, I tried to load it using python.subprocess command, but it requires the conda virtual environment to implement python3 code, so I failed with it.

Thank you for reading.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-01-15 17:22:16 -0500

osilva gravatar image

Hi @Hwang

Working with Python 3 in Melodic is not very easy. If possible switch to ROS Noetic and you will have a smoother experience.

Refer to prior answer for a more complete explanation: #q348093

edit flag offensive delete link more

Comments

I would suggest the OP to take a look at either wiki/catkin_virtualenv or rospypi/simple. Both make using Python 3 with Melodic quite doable.

gvdhoorn gravatar image gvdhoorn  ( 2022-01-17 02:02:44 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2022-01-15 01:50:54 -0500

Seen: 90 times

Last updated: Jan 15 '22