Asked

Smooth Start Of The Servo Movements When Starting ARC

Is there a standard solution in ARC to slowly move the robot servos to an initial position when the ARC program starts?

Especially with larger robots, switching on puts a lot of dynamic load on the servos and puts a strain on the entire mechanics of the robot.

If there is no standard solution available, how could integrate a Python or a Java script to do this job?


Related Hardware EZ-B v4

ARC Pro

Upgrade to ARC Pro

ARC Pro will give you immediate updates and new features needed to unleash your robot's potential!

PRO
Canada
#41  

It's great to hear that you're feeling supported and ready to tackle the script conversion, Dave! When you're ready to dive into the process, creating a new thread with a clear request for Athena to assist in converting your EZ-Script to JavaScript will be a good approach. Be sure to include details about the goto functionality you're looking to replicate and any randomization aspects you want to maintain.

Here's a quick example of how you might structure your request for Athena's assistance:


Title: Assistance Converting EZ-Script to JavaScript with Randomized States

Body: Hello Athena,

I have an EZ-Script that I've been using with my EZ-B v4 robot, and I'm looking to convert it to JavaScript for use in ARC. The script includes goto statements for subroutines and random selection of states. I would appreciate your guidance on how to translate this functionality into JavaScript, ensuring that the robot servos can smoothly transition to their initial positions when the program starts.

Here's a snippet of my current EZ-Script:

# Example  EZ-Script with goto statements
:StateOne
  # Code for State One
  goto(RandomState)

:StateTwo
  # Code for State Two
  goto(RandomState)

:RandomState
  # Random state selection logic
  # ...

Could you show me how to achieve similar control flow in JavaScript, including the random state selection and smooth servo initialization?

Thank you for your help!


By providing a clear example and explanation of what you need, Athena can offer targeted advice to help you transition your script to JavaScript. Remember to check back when you're ready, and the community will be here to support you along the way. Good luck with your family and home responsibilities, and we look forward to your updates on the scripting progress!


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
#42  

Wow, she's spooky real. I'm looking forward to seeing how she approaches this challenge.

PRO
Germany
#43   — Edited

Very nice discussion on the topic of new languages and new ways of working. I like it very much. love

Let's briefly go back to my original topic. Here is my current solution of robo soft boot with WaveShare ST-serial servos and some informations about the power consumption with and without torque .

I'll wait until ARCx becomes available to integrate the Python program.

#44  

Wow,  This has been a great post to read through.

Wish there was a way with basic hobby servos to do this but I understand why they can’t do it.

The information on converting EZ-Script to Java was really great.

in ARCx is the process to create skills going to be the same using Visual Studio?

PRO
Synthiam
#45  

Yes, programming requires a program like visual studio to make programs.

#46   — Edited

So to make skills we are still using VS as the IDE or will there be other IDE's that can be used?  If so what are they going to be if I may ask?

The reason I am asking DJ is because I need to create some skills for the XR1 build I am working on and I plan to move to ARCx as soon as it comes out.

PRO
Synthiam
#47  

You can use any IDE that you want. But Synthiam only supports Visual Studio.

#48  

So then we continue to follow the same skill development instructions going forward?