Contact world plugin example.
More...
#include <gazebo/gazebo_client.hh>
#include <gazebo/gazebo_config.h>
#include <gazebo/transport/transport.hh>
#include <gazebo/msgs/msgs.hh>
#include <iostream>
#include "contact_request.pb.h"
#include "contact_response.pb.h"
Go to the source code of this file.
|
| void | getContactBetween (gazebo::transport::PublisherPtr pub, const std::string &collision1, const std::string &collision2) |
| | Obtain contact between two collision entities. More...
|
| |
| void | changeSurface (gazebo::transport::PublisherPtr pub, const std::string &model, const std::string &link, const std::string &collision) |
| | Change surface properties. More...
|
| |
Contact world plugin example.
- Author
- João Borrego : jsbruglie
| #define REQUEST_TOPIC "~/grasp/contact" |
Topic for incoming requests.
| #define RESPONSE_TOPIC "~/grasp/contact/response" |
Topic for outgoing responses.
Declaration for request aux message type.
Declaration for request message type.
Shared pointer declaration for response message type.
Declaration for request aux message type.
| void changeSurface |
( |
gazebo::transport::PublisherPtr |
pub, |
|
|
const std::string & |
model, |
|
|
const std::string & |
link, |
|
|
const std::string & |
collision |
|
) |
| |
Change surface properties.
- Parameters
-
| void getContactBetween |
( |
gazebo::transport::PublisherPtr |
pub, |
|
|
const std::string & |
collision1, |
|
|
const std::string & |
collision2 |
|
) |
| |
Obtain contact between two collision entities.
- Parameters
-
| pub | Communication publisher |
| collision1 | Name of first collision in pair to test |
| collision2 | Name of second collision in pair to test |