Skip to content

World plugin#36

Merged
josephduchesne merged 16 commits into
masterfrom
world_plugin
Nov 2, 2017
Merged

World plugin#36
josephduchesne merged 16 commits into
masterfrom
world_plugin

Conversation

@KnightArthurRen

Copy link
Copy Markdown
Collaborator
  • 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

Comment thread flatland_server/src/plugin_manager.cpp Outdated
if (type.find("::") != std::string::npos) {
world_plugin = world_plugin_loader_->createInstance(type);
} else {
ROS_INFO_NAMED("PluginManager", "else");

Copy link
Copy Markdown
Collaborator

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

Comment thread flatland_server/src/world.cpp Outdated

YamlReader world_plugin_reader =
world_reader.SubnodeOpt("plugins", YamlReader::LIST);
// world_reader.EnsureAccessedAllKeys();

Copy link
Copy Markdown
Collaborator

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?

Comment thread flatland_plugins/src/world_modifier.cpp Outdated
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)) {

Copy link
Copy Markdown
Collaborator

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?

@josephduchesne josephduchesne merged commit e2ec709 into master Nov 2, 2017
JoaoCostaIFG pushed a commit to JoaoCostaIFG/flatland that referenced this pull request Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants