Henry1iu / ierg5350_rl_course_project

IERG5350 Reinforcement Learning Course Project based on the Stanford AI lab's work on multimodal representation.
28 stars 4 forks source link

No module named 'ATI_Sensor' #2

Open windrunners opened 2 years ago

windrunners commented 2 years ago

Hello, thanks for your open source project.

I'm trying to run this program, but it says "No module named 'ATI_Sensor'". Where can I get the ATI_Sensor data?

Henry1iu commented 2 years ago

Hi, thanks for your interest.

I guess you ran the test_ft_sensor_reading.py. It's irrelevant to this project. This script is just for real-time reading of the force-torque sensor. You can ignore it.

Best regards, Jianbang

windrunners commented 2 years ago

Hi, very glad to receive your reply.

The main program I'm running is "train_peg_insertion.py". But But it says "No module named 'ATI_Sensor'. The specific error subroutine is ”test_ft_sensor_reading.py“ and the error line is "from ATI_Sensor import Sensor as FT_Sensor".

Could you please find out what's going on when you have time? Thank you!

Henry1iu commented 2 years ago

I think you can comment on the line "from ATI_Sensor import Sensor as FT_Sensor".

And make the line uncomment: "# from NetFT import Sensor as FT_Sensor".

If it still goes wrong, could you please share the entire error message with me?

Henry1iu commented 2 years ago

About the NetFT module, you can refer to https://github.com/CameronDevine/NetFT

windrunners commented 2 years ago

Thank you for your help!

A new problem has arisen as shown below: self.table_uid = p.loadURDF(os.path.join(self._urdf_root, "table/table.urdf"), 0.5000000, 0.00000, -.820000, pybullet.error: Cannot load URDF file.

I think I'm missing some URDF files.

Where can I download these URDF files about table. urdf, simple_button. urdf, target_box_new.urdf?

Henry1iu commented 2 years ago

I think the table and simple_button URDF model is a built-in model of PyBullet.

As for the target_box_new.urdf, it's a self-made box. You can simply replace it with a box in your program. I'm sorry that I'm not able to provide this URDF file currently.

windrunners commented 2 years ago

Thank you for your help. I have solved the problem.

mechanics-chenshuo commented 2 months ago

@wangshuo-bmd Hello, can you share your urdf file? Thanks for your attention

wangshuo-bmd commented 2 months ago

@mechanics-chenshuo The project file has a complete URDF file. Just modify the sensor import code as described above, "from ati_sensor import sensor as ft_sensor"

And make the line uncomment: "\from netft import sensor as ft\u sensor"