Gazebo | Ignition | Community
Ask Your Question

What does size of states[] mean in ContactsState Message?

asked 2020-07-27 08:12:32 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.


I am trying to simulate a collision of my robot with a wall. I want to record the force over time during collision. I implemented the gazebo_ros_bumper sensor. I get a message when collision occurs. But the states Array always has about 20 Contact States. I tried tuning parameters as max_contacs, kp, kd and some more. Can someone explane why there are so many contact states? What do they mean?


edit retag flag offensive close merge delete


Hi, did you figure this out?

awck gravatar imageawck ( 2021-02-03 08:34:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-06-27 01:16:07 -0500

tanyouliang gravatar image

The state array in the gazebo_ros_bumper plugin seems to be an array of contacts for each timestamp. Thus, the 20 contact states are the contact states in the span of a period of time.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-07-27 08:12:32 -0500

Seen: 335 times

Last updated: Jun 27 '21