ros-control joint state

asked 2016-06-04 19:01:54 -0600

DKWatson gravatar image

updated 2016-06-05 01:34:16 -0600

Hi, I am trying to build a my own robot in gazebo following this tutorial

Here is my xacro file in rviz

image description

and I do can move each joint around in rviz. Everything looks so good so far.

image description

Then I want to simulate my robot in gazebo. There is what it looks like before I launch the ros_control.

image description

But when I launch ros_control (I try not to launch gazebo and ros_control together which is recommended in the tutorial because of debugging purpose...) My robot_arm seems being dragged by a mysterious great force and fly high up like a rocket and quickly disappeared in the gazebo world.

My guess is the ros_control node publishes some messages without my awareness. The result of I echoing my Joint_State rostopic is the following

image description

So I find that there is a HUGE VARIATION on the effort and velocity. The position has also very big numbers, but they are quite consistent.

TWO questions: 1, Is it where the bug is? What exactly is going on? 2, Why my robot cannot stand still like it did in rviz? why it always crash down in the gazebo world?

(sry for not posing it directly in the question here because it requires >5 points to upload a file and I just get 1 point now)

I will also post my xacro file link here in case you need it. Thank you in advance.

UPDATE: So I think I locate the bug of the first question. The problem is my PID values in "my_arm_control.yaml" file. They are so big that leads the model to unstable behavior. My current solution is to set P and D to zero. And now my robot can lying on the ground from my observation so far! Some improvement at least....

But I still don't know why it will lie on the ground and why there is no physical collision between each link of the robot, i.e. for example the yellow ball can go inside the blue cylinder.

edit retag flag offensive close merge delete

Comments

Please add upload all images and include all files in your question (use the Preformatted Text button to format the xml). I've given you the karma to do so.

Your files are inaccessible: I get a "Please enter your netid" form.

gvdhoorn gravatar imagegvdhoorn ( 2016-06-05 00:55:52 -0600 )edit

Also: if I may suggest: looking at your github repository, it would seem you are versioning your entire catkin workspace. That is really not recommended. You want to be versioning your packages only. The build and devel dirs are useless, as they are machine-specific.

gvdhoorn gravatar imagegvdhoorn ( 2016-06-05 00:59:00 -0600 )edit

Thank you! gvdhoorn. Now I have update the question. For the github, I was new to git and github so I just uploaded all my file at that time. I will take you advise next time, thank you :)

DKWatson gravatar imageDKWatson ( 2016-06-05 01:36:07 -0600 )edit