Gazebo | Ignition | Community
Ask Your Question
0

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

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

this post is marked as community wiki

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

Hello,

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?

Thanks!

edit retag flag offensive close merge delete

Comments

Hi, did you figure this out?

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

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Stats

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

Seen: 345 times

Last updated: Jun 27 '21