Open YY-GX opened 10 months ago
@YY-GX, I appreciate your detailed bug report. I've successfully replicated the issues you highlighted and have implemented the necessary fixes. I still have to perform some tests, but when ready, these updates will be integrated into the main branch and included in the upcoming release, version 2.0.0. You can track the progress of this release at https://github.com/rickstaa/ros-gazebo-gym/pull/66.
Hey @YY-GX, hope you're doing well! I've just rolled out v2.0.0, which addresses numerous bugs. However, there's still an unresolved issue related to setting the ee_frame_offset
or handling the Panda Hand when the control type is set to end-effector
(see https://github.com/rickstaa/ros-gazebo-gym/issues/97). In my projects, I've moved away from using end-effector
control, and currently, I don't have the capacity to dive into this problem further.
Describe the bug
Thank you so much for contributing this awesome repo!!
However, I get one strange bug (only happen for pick_and_place but not for reach, push and slide), so I feel the bug is with the gripper: I set the control_type as "end_effector". Then I create the env and use env.step(ee_pos) where the ee_pos is exactly the current pose, but the robot doesn't move at all. Then I found that the set_ee_pose() function used return False and the message say "ee pose could not be set". Since the pose I use is exactly the current pose, so I cannot understand why the moveit cannot plan a path to reach it. I guess some collision might happen within the robot?
It's appreciated if you could help with this issue :)
Reproduction steps
.. _ros_gazebo_gym: https://github.com/rickstaa/ros-gazebo-gym """ import os import re import time
import gymnasium as gym import numpy as np import rospkg import rospy import torch from ros_gazebo_gym.common.helpers import ( list_2_human_text, to_pascal_case, to_snake_case, ) from ros_gazebo_gym.core.helpers import ros_exit_gracefully from ros_gazebo_gym.task_envs.task_envs_list import ENVS from stable_baselines3 import SAC
import pickle
if name == "main": # noqa: C901 rospy.init_node( "playground", anonymous=True, )