Code Monkey home page Code Monkey logo

Comments (15)

LeonJung avatar LeonJung commented on July 26, 2024

Does read_write example work on the same environment?

from dynamixelsdk.

shelderzhang avatar shelderzhang commented on July 26, 2024

yes, it works on the same environment. The error rate is high of the example

from dynamixelsdk.

LeonJung avatar LeonJung commented on July 26, 2024

Hi,

did you test sync_read_write example when the Dynamixels set as ID 1 ID 2 .. with Baudrate 1M?

I need more information to fix together, like a picture or video is good

from dynamixelsdk.

LeonJung avatar LeonJung commented on July 26, 2024

This issue will be closed since there was no actions within 7 days.
You can activate this issue whenever.

from dynamixelsdk.

shelderzhang avatar shelderzhang commented on July 26, 2024

image
I haven't try it with baudrade 1M. I think the error occur in the code as shown below
image

I give the Dynamixel_PRO with a position trajectory that set goal point every 0.02s (second). And when the error is happen the Dynamixel_PRO will moves discontinuously

from dynamixelsdk.

LeonJung avatar LeonJung commented on July 26, 2024

@shelderzhang

Hi, again

How many of Dynamixels do you control by sync read?

Did you try the number of it in minimum?

from dynamixelsdk.

shelderzhang avatar shelderzhang commented on July 26, 2024

I just control two Dynamixels. I will try to control one of them

from dynamixelsdk.

LeonJung avatar LeonJung commented on July 26, 2024

@shelderzhang

If you are using IndirectAddresses with Syncread, it might need more time intervals between each controls, because the communication packet would be much longer than normals.

from dynamixelsdk.

shelderzhang avatar shelderzhang commented on July 26, 2024

It seems performance difference in different computers. When I use the NUC(intel) to control the Dynamixels there are more errors. Even I just read it one time. ....... Is the baud rate too small

from dynamixelsdk.

shelderzhang avatar shelderzhang commented on July 26, 2024

I'm so depressed in the experiments. It make the data with large noise

from dynamixelsdk.

shelderzhang avatar shelderzhang commented on July 26, 2024

I think the error may be cased by the length of packet . In Protocol2PacketHandler::txPacket() It returns COMM_TX_ERROR, as following codes,

  // check max packet length
  total_packet_length = DXL_MAKEWORD(txpacket[PKT_LENGTH_L], txpacket[PKT_LENGTH_H]) + 7;
  // 7: HEADER0 HEADER1 HEADER2 RESERVED ID LENGTH_L LENGTH_H
  if (total_packet_length > TXPACKET_MAX_LEN)
  {
    port->is_using_ = false;
    return COMM_TX_ERROR;
  }

The INDIRECTDATA information I use to control two Dynamixel_por like in indirect_address.cpp as following codes

// Control table address
#define ADDR_PRO_INDIRECTDATA_FOR_WRITE         634
#define ADDR_PRO_INDIRECTDATA_FOR_READ          638

// Data Byte Length
#define LEN_PRO_INDIRECTDATA_FOR_WRITE          4
#define LEN_PRO_INDIRECTDATA_FOR_READ           8

#define ADDR_PRO_INDIRECTADDRESS_FOR_WRITE    49                 
#define ADDR_PRO_INDIRECTADDRESS_FOR_READ    57   

I write the GoalPos and read the Pos and Vel at the same time.

from dynamixelsdk.

shelderzhang avatar shelderzhang commented on July 26, 2024

When I set time intervals between each controls as 0.01s, it works well. But the interval time is too large for me. It seems the txpacket is so busy...... It is strange that my PC don't have the bug

from dynamixelsdk.

LeonJung avatar LeonJung commented on July 26, 2024

@shelderzhang

Hi,

Though I'm in holiday, I worked for this in my company since you are seemed urgent so far

I really hope that this finally makes you get into the goal

take a look the source and play video

it was filmed by using a M42-10-S260-R and H42-20-S300-R (bcs I didn't have any extras)

https://drive.google.com/drive/folders/0B2-t1GBeX7tuaUVsbTc1aDktb00?usp=sharing

the error shown at first scene was occurred by the voltage lackage (I used 12V but it needs 24V normally), and no error was appeared.

If something goes wrong in your environment, theres another problem except SDK.

and please update to the newest version of DynamixelSDK since there was new update of Ubuntu16.04.2 kernel related stuffs

from dynamixelsdk.

shelderzhang avatar shelderzhang commented on July 26, 2024

Thank you! There is no problem after I update the SDK

from dynamixelsdk.

LeonJung avatar LeonJung commented on July 26, 2024

@shelderzhang

Oh, it is good for you

Good luck for your works

from dynamixelsdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.