File tree Expand file tree Collapse file tree 6 files changed +14
-13
lines changed
include/robotiq_hande_driver Expand file tree Collapse file tree 6 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ endforeach()
3030add_library (${PROJECT_NAME}
3131 SHARED
3232 hardware/src/hande_hardware_interface.cpp
33+ hardware/src/application.cpp
34+ hardware/src/communication.cpp
35+ hardware/src/protocol_logic.cpp
3336)
3437
3538add_executable (communication_test test /communication_test.cpp)
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ class GripperApplication {
254254 };
255255
256256 /* *
257- * @brief Closes the gripper.
257+ * @brief Reads gripper data .
258258 *
259259 * @param none
260260 * @return None.
@@ -263,7 +263,7 @@ class GripperApplication {
263263 void read ();
264264
265265 /* *
266- * @brief Closes the gripper.
266+ * @brief Writes gripper data .
267267 *
268268 * @param none
269269 * @return None.
Original file line number Diff line number Diff line change 55#include < cstring>
66#include < string>
77
8- #include < rclcpp/rclcpp.hpp>
9-
108
119namespace robotiq_hande_driver
1210{
Original file line number Diff line number Diff line change 1- #include " application.hpp"
1+ #include " robotiq_hande_driver/ application.hpp"
22
33#include < cstdio>
44
55
6- namespace hande_driver {
6+ namespace robotiq_hande_driver {
77
88GripperApplication::GripperApplication ()
99: requested_position_()
@@ -32,4 +32,4 @@ void GripperApplication::read(){
3232 position_ = gripper_position_max_ - (double )protocol_logic_.get_pos () * gripper_postion_step_;
3333 current_ = (double )protocol_logic_.get_current () * GRIPPER_CURRENT_SCALE;
3434}
35- } // namespace hande_driver
35+ } // namespace robotiq_hande_driver
Original file line number Diff line number Diff line change 1- #include " communication.hpp"
1+ #include " robotiq_hande_driver/ communication.hpp"
22
33#include < cstdio>
44
55
6- namespace hande_driver {
6+ namespace robotiq_hande_driver {
77
88Communication::Communication ()
99: input_bytes_{}
@@ -25,4 +25,4 @@ void Communication::connect(){
2525 else
2626 printf (" Couldn't connect: %d\n " , result);
2727}
28- } // namespace hande_driver
28+ } // namespace robotiq_hande_driver
Original file line number Diff line number Diff line change 1- #include " protocol_logic.hpp"
1+ #include " robotiq_hande_driver/ protocol_logic.hpp"
22
33#include < cstdio>
44
55
6- namespace hande_driver {
6+ namespace robotiq_hande_driver {
77
88ProtocolLogic::ProtocolLogic ()
99: status_()
@@ -43,4 +43,4 @@ void ProtocolLogic::refresh_registers(){
4343 position_ = communication_.get_input_byte (InputBytes::POSITION);
4444 current_ = communication_.get_input_byte (InputBytes::CURRENT);
4545}
46- } // namespace hande_driver
46+ } // namespace robotiq_hande_driver
You can’t perform that action at this time.
0 commit comments