diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a075741f..b8640abb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Requires `libfranka` >= 0.8.0 * `franka_description`: `` macro now supports to customize the `parent` frame and its `xyz` + `rpy` offset * `franka_hw`: Fix the bug where the previous controller is still running after switching the controller. ([#326](https://github.com/frankaemika/franka_ros/issues/326)) * `franka_gazebo`: Add `set_franka_model_configuration` service. + * `franka_gazebo`: Add Gazebo simulation physics engine command line argument ## 0.10.1 - 2022-09-15 diff --git a/franka_gazebo/launch/panda.launch b/franka_gazebo/launch/panda.launch index f9baa6976..5ee2243c0 100644 --- a/franka_gazebo/launch/panda.launch +++ b/franka_gazebo/launch/panda.launch @@ -6,6 +6,7 @@ + @@ -38,6 +39,7 @@ + diff --git a/franka_gazebo/launch/robot.launch b/franka_gazebo/launch/robot.launch index 21911935c..a11a39b6b 100644 --- a/franka_gazebo/launch/robot.launch +++ b/franka_gazebo/launch/robot.launch @@ -7,6 +7,7 @@ + @@ -40,6 +41,7 @@ + GetType()); + // Print information about the used physics engine + std::vector supported_engines{"ode", "dart"}; + std::string physics_engine = physics->GetType(); + ROS_INFO_STREAM_NAMED("franka_hw_sim", "Using physics type " << physics->GetType()); + if (std::find(supported_engines.begin(), supported_engines.end(), physics_engine) == + supported_engines.end()) { + ROS_ERROR_STREAM_NAMED("franka_hw_sim", + "The Panda Gazebo model does not yet officially support the '" + + physics_engine + "' physics engine."); + } + // Retrieve initial gravity vector from Gazebo // NOTE: Can be overwritten by the user via the 'gravity_vector' ROS parameter. auto gravity = physics->World()->Gravity();