Ask Your Question

if the required message is a standard message type available with ROS, do we still need to define it in msg/xxxx.msg?

asked 2020-10-30 11:13:50 -0500

Anirudh_Vajpeyi gravatar image

If my message type is geometry_msgs/WrenchStamped, do I still need to define it in msg folder or I can skip it? As I am not using a custom message type.

Thanks Anirudh

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2020-10-30 11:24:46 -0500

You can skip it. All standard message types are already run through gencpp/genpy/gennodejs/etc. during build time of the ROS distribution packages to generate the c++, python, and node.js message definition classes. You can verify this using locate on your machine:

> locate WrenchStamped
edit flag offensive delete link more

answered 2020-10-30 11:21:11 -0500

JackB gravatar image

A standard message type does not need to be defined in the msg folder. Only custom messages need to be defined there.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-10-30 11:13:50 -0500

Seen: 79 times

Last updated: Oct 30 '20