ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

Why separation of *.py and *.h/*.lisp auto generated messages?

asked 2011-06-10 16:26:48 -0600

dejanpan gravatar image

Hi there, this must be a rather obvious thing but I am still not sure about. Why are all auto-generated *.lisp and *.h msgs placed in msg_gen folder but *.py ones into src/pkg_name/ folder?

thx, D.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-06-11 08:33:27 -0600

kwc gravatar image

msg_gen is a better location as it keeps auto-generated code separate from actual source code, but some languages make it more difficult to combine source files from multiple directories into the same namespace. For example, if you have two directories in Python, each with name 'package', the first one on your PYTHONPATH will get the 'package' namespace, and the other will be ignored.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-06-10 16:26:48 -0600

Seen: 564 times

Last updated: Jun 11 '11