diff --git a/Readme.md b/Readme.md index fd94dab4299db7bf9d6fa9007d2157ffbb24a872..88eb35bcd8875c8ed4b40224d468f2f0731d5350 100644 --- a/Readme.md +++ b/Readme.md @@ -44,28 +44,16 @@ Clone the repository as to your home: `git clone https://github.com/CPS2018/Simu ```GAZEBO_MODEL_PATH=:/home/user/src/Firmware/Tools/sitl_gazebo/models:/home/user/catkin_ws/src/simulation_control/src/models``` ```GAZEBO_PLUGIN_PATH=:/home/user/src/Firmware/Tools/sitl_gazebo/Build``` (Gazebo gets it's models in this case from two paths which are told apart by the `:` sign.) 3. Add the file `gripper_plugin.cc` in the folder one step up from your `GAZEBO_PLUGIN_PATH`. In this case, it would be `/home/user/src/Firmware/Tools/sitl_gazebo/src` -4. Add the following under plugins to the `CMakeLists.txt` file located at `/home/user/src/Firmware/Tools/sitl_gazebo/src` - - ` -----GripperPlugin` - +4. Add the following lines under plugins to the `CMakeLists.txt` file located at `/home/user/src/Firmware/Tools/sitl_gazebo/src` `find_package(roscpp REQUIRED)` - `find_package(std_msgs REQUIRED)` - `include_directories(${roscpp_INCLUDE_DIRS})` - `include_directories(${std_msgs_INCLUDE_DIRS}) ` - `find_package(gazebo REQUIRED)` - `include_directories(${GAZEBO_INCLUDE_DIRS})` - `link_directories(${GAZEBO_LIBRARY_DIRS})` - `set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")` - `add_library(gripper_plugin SHARED src/gripper_plugin.cc)` - `target_link_libraries(gripper_plugin ${GAZEBO_libraries} ${roscpp_LIBRARIES})` 5. Open a terminal and type the following: