Skip to content

Model Resetting #16

@crr0004

Description

@crr0004

After setting up the repo locally and having everything running, I noticed the robot joints would disconnect and go all over the place. After much investigation I figured out it was the reset function. I think it would be more prudent to use the model reset function in gazebo. It's exposed as a service you can invoke this with something like

from std_srvs.srv import Empty
self.reset_models = rospy.ServiceProxy('/gazebo/reset_world', Empty)


#self.gazebo_model_state_service(model_state)
#self.gazebo_model_configuration_service(model_name='rover', urdf_param_name='rover_description', joint_names=joint_names_list, joint_positions=joint_positions_list)
self.reset_models()

Using that method just causes the model to return to the state it was in from the URDF/XML/launch files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions