- ROS drivers templates for creating new drivers:
- C++ template ROS package
- Python template ROS package
- For a new driver copy the dnb_driver_template_cpp sub package to your workspace/src folder.
- Modify the package directory, the CMakeLists.txt and package.xml. Rename all dnb_driver_template_cpp occurences to your new package name.
- Modify the driver_template.cpp and driver_template.h files. Rename all DriverTemplate occurences to your new driver class name.
- Modify the individual_command_template.cpp and individual_command_template.h files. Rename all IndividualCommandTemplate occurences to your individual movement command name.
- Modify the driver_template.cpp and driver_template.h files. Rename all IndividualCommandTemplate occurences to your individual movement command class name.
- Rename the driver_template.cpp, driver_template.h, individual_command_template.cpp and individual_command_template.h files corresponding to your new driver.
- Adjust the .cpp filenames in the CMakeLists.txt respectively.
- Run catkin build in the workspace. Until here no real modifications have been done, just renaming to your new driver. So it should compile without problems.
- Modify the (former) driver_template.cpp and individual_command_template.cpp files to your individual system. Watch for <!> occurences and adjust these respective their descriptions. Possibly you will have to adjust the entire package to satisfy the robot controllers requirements.
- Adjust launchfile and module_config files
- For a new driver copy the dnb_driver_template_python subpackage to your workspace/src folder.
- Modify the package directory, the CMakeLists.txt and package.xml. Rename all dnb_driver_template_python occurences to your new package name.
- Modify the individual_command_template.py file. Rename all IndividualCommandTemplate occurences to your individual movement command class name.
- Modify the driver_template.py file. Rename all IndividualCommandTemplate occurences to your individual movement command class name.
- Rename the driver_template.py and individual_command_template.py files corresponding to your new driver.
- Run catkin build in the workspace. Until here no real modifications have been done, just renaming to your new driver. So it should compile without problems.
- Modify the (former) driver_template.py and individual_command_template.py files to your individual system. Watch for <!> occurences and adjust these respective their descriptions. Possibly you will have to adjust the entire package to satisfy the robot controllers requirements.
- Adjust launchfile and module_config files