ron007d / ros_pick_and_place_simulation

This repo is being used for making ROS pick and place simulation with gazebo.
0 stars 0 forks source link

run the pick_and_place.py file #2

Closed hideonbush-prog closed 2 months ago

hideonbush-prog commented 2 months ago

i tried to run the file but it seems that it can only spawn the model(cube)

"rosrun pick_and_place pick_and_place.py [ INFO] [1718621807.167142982]: Loading robot model 'sample_robot'... [ INFO] [1718621807.168491508]: No root/virtual joint specified in SRDF. Assuming fixed joint [ INFO] [1718621808.467142103, 38.161000000]: Ready to take commands for planning group robot1. [ INFO] [1718621809.110518016, 38.801000000]: Ready to take commands for planning group gripper1. [INFO] [1718621809.111508, 0.000000]: Y position of the box x: -0.2 y: 0.7 z: 1 success: True status_message: "SpawnModel: Successfully spawned entity"

"

it stop until here. how can i excute it fully? ![Uploading Untitled 1.png…]()

ron007d commented 2 months ago

after running demo_gazebo.launch there is no open cv screen, that means its not able to detect the object

try running this

rosrun pick_and_place live_object_detector.py

if it shows error then python packages are not installed correctly. There might be a conflict between pandas and numpy

hideonbush-prog commented 2 months ago

after running demo_gazebo.launch there is no open cv screen, that means its not able to detect the object

try running this

rosrun pick_and_place live_object_detector.py

if it shows error then python packages are not installed correctly. There might be a conflict between pandas and numpy

Screenshot from 2024-06-20 16-28-02

i did like you ask me to, but it still doesnt run properly^

ron007d commented 2 months ago

oohh got it there is lighting error in gazebo with non GPU user

  1. go to scene
  2. disable shadow image

check if it works, if not then try to manually give the color in the live object detector

hideonbush-prog commented 2 months ago

it works!! thanks a lot.

ron007d commented 2 months ago

Thanks closing the issue