Skip to content

Commit

Permalink
[hrpiob] Upgrade for hrpsys 315.4.0 onward.
Browse files Browse the repository at this point in the history
  • Loading branch information
130s committed Dec 12, 2016
1 parent 89783bb commit a7cccfa
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
30 changes: 30 additions & 0 deletions hironx_ros_bridge/robot/hrpiob/iob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -733,3 +733,33 @@ int read_digital_output(char *doutput)
else
return FALSE;
}

/**
* @brief Needed for hrpsys 315.4.0 onward (added at https://github.com/fkanehiro/hrpsys-base/pull/598).
* TODO Implement if we want to utilize this.
*/
int number_of_thermometers(void)
{
std::fprintf(stdout, "number_of_thermometers not implemented.\n");
return 0;
}

/**
* @brief Needed for hrpsys 315.4.0 onward (added at https://github.com/fkanehiro/hrpsys-base/pull/598).
* TODO Implement if we want to utilize this.
*/
int number_of_batteries(void)
{
std::fprintf(stdout, "number_of_batteries not implemented.\n");
return 0;
}

/**
* @brief Needed for hrpsys 315.4.0 onward (added at https://github.com/fkanehiro/hrpsys-base/pull/598).
* TODO Implement if we want to utilize this.
*/
int read_battery(char *battery)
{
std::fprintf(stdout, "read_battery not implemented.\n");
return 0;
}
5 changes: 4 additions & 1 deletion hironx_ros_bridge/robot/hrpiob/nextage-open.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,17 @@ namespace NEXTAGE_OPEN
virtual int wait_for_iob_signal(void) = 0;
virtual long get_signal_period(void) = 0;


virtual int initializeJointAngle(const char *name, const char *option) = 0;
virtual int read_digital_input(char *dIn) = 0;
virtual int length_digital_input(void) = 0;
virtual int write_digital_output(const char *doutput) = 0;
virtual int write_digital_output_with_mask(const char *doutput, const char *mask) = 0;
virtual int length_digital_output(void) = 0;
virtual int read_digital_output(char *doutput) = 0;

virtual int number_of_thermometers(void) = 0;
virtual int number_of_batteries(void) = 0;
virtual int read_battery(char *battery) = 0;
};

}
Expand Down

0 comments on commit a7cccfa

Please sign in to comment.