Robotics StackExchange | Archived questions

Restricting movement using random velocity plugin

I am currently using random velocity plugin for moving blocks in my gazebo enviorment. Unfortunately, I am unable to restrict this random movement inside grid size of 2*2 i.e my block should never escape the grid. In other words it should change its velocity to opposite direction whenever it reaches edge of grid. Does anyone knows how can I achieve this?

Asked by AndyDa1992 on 2019-11-20 13:02:38 UTC

Comments

Answers

It looks like the plugin can clamp velocity but not position yet. Here's the source code in case you want to create your own version which supports clamping position.

Asked by chapulina on 2019-11-20 21:17:09 UTC

Comments