ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Gazebo Crashes when modifying joint velocities [closed]

asked 2012-11-20 18:56:36 -0600

updated 2014-04-20 14:09:33 -0600

ngrennan gravatar image

Hi All

Just trying to test a plugin to a sdf model of a 7DOF manipulator. In order to test, my i've included the following line in the plugin's OnUpdate() method:

joint1->SetVelocity(0, 0.001);

There are a few other lines in that method but they dont crash the system. joint1 is a physics::JointPtr and SetVelocity is a method of a joint. I am using rosmake, and it seems to compile fine. However when I go to start GAZEBO I get the following message:

gzserver: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr<t>::operator->() const [with T = gazebo::physics::Joint]: Assertion `px != 0' failed. Aborted (core dumped)

Any suggestions

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by PeterMilani
close date 2012-11-29 11:46:57

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-11-20 20:07:52 -0600

Okay got to the bottom of this one too!

Very simple, joint1 was not initialized properly.

the name used in physics::model::getJoint was not correct!

it was "joint1" not "Joint1"

cheers

Peter

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-20 18:56:36 -0600

Seen: 2,023 times

Last updated: Nov 20 '12