Hello, I have a problem: While I am running the first command line "roslaunch cobot_sim spawn_robot_2Dcamera_traj_controller_world.launch", it opened the gazebo scene but the rviz can not load to open the robot moveit.rviz, how can I fix it? Thank you.
@learn-robotics-with-ros6 күн бұрын
@@sarahchen8692 you just need to press play in Gazebo. Let me know if it works
@sarahchen86923 күн бұрын
Yes,it works well. 😊But one more problem: The stream_camera.py works well to detect the object from red mask, but while running “python get_position_server.py” it can not detect anything and have the issue as “Error processing request: ‘ObjectDetection’ object has no attribute ‘x_pos’. 😮
@learn-robotics-with-ros3 күн бұрын
@sarahchen8692 have you tried to move the object in Gazebo a little bit? If you run the python code, does it detect the object?
@sarahchen86922 күн бұрын
@@learn-robotics-with-ros Yes, I moved the object but it can not detect the item with "get_position_server.py”, but the “stream_camera.py” works well. My cv2 version is 4.10.0. So how can I change the code to make it work? Thank you😃
@learn-robotics-with-ros2 күн бұрын
@@sarahchen8692 before to run the server, you would need to make sure that the object is detected. I have used a mask based on the color, so have you tried to change the HSV lower and upper limit threshold?