Using Gazebo Plugin [closed]
I am trying to use the Gazebo plugin: https://github.com/ros-simulation/gaz...
- Will I need to install the whole Github repository to use that plugin?
- To compile the plugin, will I need to create a directory with CMakeLists.txt and a copy of the plugin code above or is it possible to compile the plugin using the original code (without making a copy)?
- After compiling the plugin and trying to run it, I got this error:
fatal error: gazebo_plugins/gazebo_ros_moveit_planning_scene.h: No such file or directory
I have installed gazebo_ros_pkgs/gazebo_plugins. Any suggestions for a fix?
EDIT: The following is my CMakeLists.txt file.
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
find_package(gazebo REQUIRED)
include_directories(
${GAZEBO_INCLUDE_DIRS}
include
${catkin_INCLUDE_DIRS}
)
link_directories(${GAZEBO_LIBRARY_DIRS})
list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}")
add_library(gazebo_ros_moveit_planning_scene SHARED /catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_moveit_planning_scene.cpp)
target_link_libraries(gazebo_ros_moveit_planning_scene ${GAZEBO_LIBRARIES})
You haven't given any context for the error you're receiving. What are you trying to do which results in that error?
I apologize for the vagueness, I compiled and was trying to use the plugin. The package gazebo_plugins was not detected.
Is the package found when you use rospack find gazebo_plugins?
I downloaded the github repo, so rospack find found it.