Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds range plugin for infrared and ultrasound sensors from PAL Robotics #335

Conversation

bmagyar
Copy link
Contributor

@bmagyar bmagyar commented Jul 9, 2015

Rebase of #311 to indigo-devel + added install rule for new plugin and squashed 'em together.

Solves #162 on ROS Indigo.

@bmagyar
Copy link
Contributor Author

bmagyar commented Jul 13, 2015

@j-rivero

if (!this->sdf->HasElement("topicName"))
{
ROS_INFO("Laser plugin missing <topicName>, defaults to /world");
this->topic_name_ = "/world";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this copy/pasta from the frameName check above? I'm really not a Gazebo plugin expert, but this seems like a strange topic name for a sonar sensor?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh it is indeed copy pasta with tomato sauce. Also the message there make no sense, I shall fix them shortly.

@bmagyar
Copy link
Contributor Author

bmagyar commented Jul 14, 2015

@scpeters, what do you think?

@scpeters
Copy link
Member

+1

@rethink-imcmahon
Copy link

+1 great addition @AlexReimann & @bmagyar

@j-rivero
Copy link
Contributor

Amazing! Thanks Ben! Would you mind to include a quick test world file in gazebo_plugins/test/range?

@bmagyar
Copy link
Contributor Author

bmagyar commented Jul 22, 2015

Only a .world file? If I need anything else, please you point me at an example from the test folder.

@j-rivero
Copy link
Contributor

The point is to have something to demonstrate and run the code for testing and learning proposes. I think that a world file + launch file could be a good combo. Give a look to what Nate implemented in pull request for #338.

Automatic testing would be ideal, but we probably need to setup a proper mechanism in place first to be shared by the different plugins.

@bmagyar
Copy link
Contributor Author

bmagyar commented Aug 13, 2015

Took some time to get back here, but I finally managed to add a world file + a launch file.

There are 2 boxes in the world, both with a range sensor. One looks at the other, the other looks into the horizon like a true western hero.

To launch and check:

roslaunch gazebo_ros range.world.launch
rostopic echo /sonar
rostopic echo /sonar2

There is a gaussian noise on the sensors, so the perfect 0.25 measurement hardly appears, but it works well.

Now I will try to add a rostest in a new commit.

@j-rivero
Copy link
Contributor

Took some time to get back here, but I finally managed to add a world file + a launch file.

Thanks very much Bence for taking the time to implement it. I was able to build your patch built on top of pull request #350 using gazebo5 and gazebo6 on Trusty/Indigo.

Now I will try to add a rostest in a new commit.

I will pay the beers if you made that :) Since I'm planning on releasing (issue #335), I want to get this in, so I will merge it just after pull request #350. Feel free to send a new pull request for the rostest support.

@bmagyar
Copy link
Contributor Author

bmagyar commented Aug 14, 2015

Great!
This means that gazebo plugins will be synced for now between indigo and
jade? Good news for my patch for the block laser ;)
On 14 Aug 2015 00:25, "Jose Luis Rivero" notifications@github.com wrote:

Took some time to get back here, but I finally managed to add a world file

  • a launch file.

Thanks very much Bence for taking the time to implement it. I was able to
build your patch built on top of pull request #350
#350 using
gazebo5 and gazebo6 on Trusty/Indigo.

Now I will try to add a rostest in a new commit.

I will pay the beers if you made that :) Since I'm planning on releasing
(issue #335 #335),
I want to get this in, so I will merge it just after pull request #350
#350. Feel free
to send a new pull request for the rostest support.


Reply to this email directly or view it on GitHub
#335 (comment)
.

@j-rivero
Copy link
Contributor

This means that gazebo plugins will be synced for now between indigo and jade?

That should have been done in pull request #350 and this PR will go into jade in pull request #352

j-rivero added a commit that referenced this pull request Aug 15, 2015
Adds range plugin for infrared and ultrasound sensors from PAL Robotics
@j-rivero j-rivero merged commit fcd05b8 into ros-simulation:indigo-devel Aug 15, 2015
AlexReimann added a commit to AlexReimann/yujin_tools that referenced this pull request Aug 16, 2015
cohen39 pushed a commit to cohen39/gazebo_ros_pkgs that referenced this pull request Nov 15, 2021
…ge_sensor_plugin

Adds range plugin for infrared and ultrasound sensors from PAL Robotics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants