Skip to content

Commit

Permalink
adapt to new socketcan_interface API
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-rauch committed Oct 23, 2018
1 parent b8109bb commit ec88642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class Robotiq3FGripperCanClient : public Robotiq3FGripperClientBase
GripperInput input_;
GripperOutput output_;

can::CommInterface::FrameListener::Ptr frame_listener_;
can::StateInterface::StateListener::Ptr state_listener_;
can::CommInterface::FrameListenerConstSharedPtr frame_listener_;
can::StateInterface::StateListenerConstSharedPtr state_listener_;

void frameCallback(const can::Frame &f);
void stateCallback(const can::State &s);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void Robotiq3FGripperCanClient::writeOutputs(const GripperOutput &output)
serial_request.is_error = 0;
serial_request.is_rtr = 0;
serial_request.is_extended = 0;
serial_request.data.assign((unsigned char)0);
serial_request.data.fill((unsigned char)0);

serial_request.data[0] = 0x2F;
serial_request.data[1] = 0x00;
Expand Down Expand Up @@ -218,7 +218,7 @@ Robotiq3FGripperCanClient::GripperInput Robotiq3FGripperCanClient::readInputs()
serial_request.is_error = 0;
serial_request.is_rtr = 0;
serial_request.is_extended = 0;
serial_request.data.assign(static_cast<unsigned char>(0));
serial_request.data.fill(static_cast<unsigned char>(0));

serial_request.data[0] = 0x4F;
serial_request.data[1] = 0x00;
Expand Down

0 comments on commit ec88642

Please sign in to comment.