Skip to content

Commit

Permalink
adding priushybrid plugin to urdf
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Jun 21, 2017
1 parent b8ddd35 commit 24aa920
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prius_description/urdf/prius.urdf
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,9 @@
<origin xyz="-0.793 1.45 0.3" rpy="0 0 0"/>
<axis xyz="1 0 0"/>
</joint>

<gazebo>
<plugin name="pruis_hybrid_drive" filename="libPriusHybridPlugin.so">
<!-- ... plugin parameters ... -->
</plugin>
</gazebo>
</robot>
1 change: 1 addition & 0 deletions prius_plugin/plugins/PriusHybridPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ PriusHybridPlugin::~PriusHybridPlugin()
/////////////////////////////////////////////////
void PriusHybridPlugin::Load(physics::ModelPtr _model, sdf::ElementPtr _sdf)
{
gzinfo << "PriusHybridPlugin Loading Parameters" << std::endl;
this->dataPtr->model = _model;
this->dataPtr->world = this->dataPtr->model->GetWorld();
auto physicsEngine = this->dataPtr->world->Physics();
Expand Down

0 comments on commit 24aa920

Please sign in to comment.