-
Notifications
You must be signed in to change notification settings - Fork 65
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
World plugin #36
World plugin #36
Conversation
KnightArthurRen
commented
Oct 19, 2017
- Added virtual class FlatlandPlugin to be parent class for both Model Plugin and World Plugin
- Modified files to accept FlatlandPlugin
- Modified Model Plugin to inheritance from FlatlandPlugin
- Added World Plugin to support world modification
- Modified world.cpp and plugin_manager to read world plugin
- Added a example world plugin of random wall
if (type.find("::") != std::string::npos) { | ||
world_plugin = world_plugin_loader_->createInstance(type); | ||
} else { | ||
ROS_INFO_NAMED("PluginManager", "else"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't need this debug bit or the below commented out parts any more
flatland_server/src/world.cpp
Outdated
|
||
YamlReader world_plugin_reader = | ||
world_reader.SubnodeOpt("plugins", YamlReader::LIST); | ||
// world_reader.EnsureAccessedAllKeys(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this break now with the plugins subnode?
float RayTrace::ReportFixture(b2Fixture *fixture, const b2Vec2 &point, | ||
const b2Vec2 &normal, float fraction) { | ||
// only register hit in the specified layers | ||
if (!(fixture->GetFilterData().categoryBits & 1)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean "only the first layer"? If so, that's not really the "specified" layers?
World plugin