Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ public String toString(){
*/
public DhInverseSolver getInverseSolver() {
if(is==null){
Log.error(new RuntimeException("No Solver defined!"));
return new DhInverseSolver() {
is=new DhInverseSolver() {

@Override
public double[] inverseKinematics(TransformNR target,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/neuronrobotics/sdk/common/ByteList.java
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public synchronized byte[] getBytes(int start, int len) {

if(isUseStaticBuffer()){
int tmpRead = staticBufferReadPointer;
//Allign the start pointer
//Align the start pointer
if(start != 0){
for(int i=0;i<start;i++){
tmpRead++;
Expand Down
6 changes: 1 addition & 5 deletions src/main/java/com/neuronrobotics/sdk/common/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,7 @@ public void write(int b) throws IOException {
System.setErr(new PrintStream(streamErr));
setOutStream(new PrintStream(streamErr));
while (instance.log!=null) {
try {
Thread.sleep(149);
} catch (InterruptedException e) {
return;
}
ThreadUtil.wait(150);
if (instance.incomingOut.size() > 0)
try {
String text = instance.incomingOut.asString();
Expand Down