can someone please explain me in the example 3.5 what is the difference between DeleteModel and DeleteModelRequest??


asked 10 Mar, 11:35

eyalzimer's gravatar image

accept rate: 0%


DeleteModel is a file.srv that has the structure of the message (the data that use this kind of message):

string model_name                 # name of the Gazebo Model to be deleted
bool success                      # return true if deletion is successful
string status_message             # comments if available

However, DeleteModelRequest is automatically generated when the client is executed and it makes possible that you could call to the service with the data you want to modify, delete, add, whatever you want that your services does.

So, DeleteModelRequest works when you do this in the WebShell:

rosservice call /gazebo/delete_model "model_name: '...'"

Because as the course says "the request is the part of the message that is used to CALL the Service. Therefore, it is sent by the Service Client to the Service Server."

Hope this can help you

permanent link

answered 12 Mar, 16:17

sanmool%40etsiamn.upv.es's gravatar image

accept rate: 50%

edited 12 Mar, 16:19

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 10 Mar, 11:35

question was seen: 116 times

last updated: 12 Mar, 16:19

powered by OSQA