THE ANNIN ROBOTICS FORUM HAS MOVED TO A NEW COMMUNITY. 👉
Notifications
Clear all

c++ version

15 Posts
2 Users
0 Reactions
87 Views
Avatar of hugh maclaurin
(@hugh-maclaurin)
Active Member
Joined: 3 months ago
Posts: 10
Topic starter  

I'm using software that i've written in c++ to run my ar2-3. the fk and ik routines are an interpretation of chris's python code. i'm using a matrix maths library for the matrix operations and the accelstepper library for the motion profiling. it results in quite a compact code base. the whole thing runs on a teensy.

 

it runs stand alone with a command line interface or with a control program i wrote to jog the arm using x,y,z,yaw,pitch,roll or j1-6 angles or run a script of x,y,z,yaw,pitch,roll commands. works a treat....



   
Quote
Topic Tags
Avatar of Kanatmetin
(@kanatmetin)
Active Member
Joined: 3 months ago
Posts: 8
 

can you share



   
ReplyQuote
Avatar of hugh maclaurin
(@hugh-maclaurin)
Active Member
Joined: 3 months ago
Posts: 10
Topic starter  

@kanatmetin Hi... the software is still pretty raw. Not a turnkey system like Chris's. I'm currently developing the control program which integrates the MS scripting engine. I can run my arm with VB scripts which gives it a great deal of flexibility. I'm OK with sharing but I've had to change some of the calibration parameters which seem to be incorrect. Need to start a conversation before I'd be happy to release the software... cheers



   
ReplyQuote
Avatar of Kanatmetin
(@kanatmetin)
Active Member
Joined: 3 months ago
Posts: 8
 

i will be waiting

If you share it, we may benefit in its development.



   
ReplyQuote
Avatar of hugh maclaurin
(@hugh-maclaurin)
Active Member
Joined: 3 months ago
Posts: 10
Topic starter  

Do you have an arm built that you can use? Do you know how you want to use the software?



   
ReplyQuote
Avatar of Kanatmetin
(@kanatmetin)
Active Member
Joined: 3 months ago
Posts: 8
 

Yes there is. so we can contribute if you share.



   
ReplyQuote
Avatar of hugh maclaurin
(@hugh-maclaurin)
Active Member
Joined: 3 months ago
Posts: 10
Topic starter  

I need to do some more testing, then I'll put the arduino code + my control program + a pdf description onto github.

 

I'm currently integrating a servo gripper that doesn't interfere with the calibration.



   
ReplyQuote
Avatar of Kanatmetin
(@kanatmetin)
Active Member
Joined: 3 months ago
Posts: 8
 

I'm looking forward to.



   
ReplyQuote
Avatar of hugh maclaurin
(@hugh-maclaurin)
Active Member
Joined: 3 months ago
Posts: 10
Topic starter  

I've uploaded the sketch, control application and some test files to github hugo-source/AR2-source.... cheers



   
ReplyQuote
Avatar of Kanatmetin
(@kanatmetin)
Active Member
Joined: 3 months ago
Posts: 8
 

thenks



   
ReplyQuote
Avatar of hugh maclaurin
(@hugh-maclaurin)
Active Member
Joined: 3 months ago
Posts: 10
Topic starter  

I've uploaded the sketch now.



   
ReplyQuote
Avatar of Kanatmetin
(@kanatmetin)
Active Member
Joined: 3 months ago
Posts: 8
 

if ( verbose ) Matrix.Print( (float*)DHt, 6, 4, "DH table");

 

exit status 1

no matching function for call to 'MatrixMath::Print(float*, int, int, const char [9])'



   
ReplyQuote
Avatar of hugh maclaurin
(@hugh-maclaurin)
Active Member
Joined: 3 months ago
Posts: 10
Topic starter  

I've compiled the sketch on both a Mega and Teensy 3.5. No problems.

Have you installed the MatrixMath library? If so, check in MatrixMath.h for the Print function prototype. If its not there, you have a different library to the one I have ( https://github.com/codebndr/MatrixMath )



   
ReplyQuote
Avatar of hugh maclaurin
(@hugh-maclaurin)
Active Member
Joined: 3 months ago
Posts: 10
Topic starter  

do you have a duplicate, more than one MatrixMath library installed?



   
ReplyQuote
Avatar of hugh maclaurin
(@hugh-maclaurin)
Active Member
Joined: 3 months ago
Posts: 10
Topic starter  

If you still have problems compiling, look under File/Examples/MatrixMath/MatrixMathExample and compile that sketch. It has a call to Print



   
ReplyQuote
Share:
Upload your Photo