Git Product home page Git Product logo

Comments (6)

ROBOTIS-zerom avatar ROBOTIS-zerom commented on June 25, 2024

If the file does not exist, offset is used as 0 by default.
In case of RH-P12-RN, it is not necessary to set offset.

from rh-p12-rn.

adrianwslee avatar adrianwslee commented on June 25, 2024

The manager launch file asks for offset.yaml file. I can't even start the launch file. So does that mean I can just get rid of that line...?
I don't even know which parameter to set 0. Can you elaborate more, please?

from rh-p12-rn.

ROBOTIS-zerom avatar ROBOTIS-zerom commented on June 25, 2024

In the launch file

<param name="offset_file_path"         value="$(find rh_p12_rn_manager)/config/offset.yaml"/>

In the rh_p12_rn_manager.cpp file

...
  nh.param<std::string>("offset_file_path", g_offset_file, "");
...
  // load offset
  if (g_offset_file != "")
  controller->loadOffset(g_offset_file);
...

If the file does not exist, g_offset_file will be "" (default value).
So, controller does not load offset file.
The offset_file_path parameter of the launch file is the code to use when the file exists.
If the file doesn't exist, no problem.

from rh-p12-rn.

adrianwslee avatar adrianwslee commented on June 25, 2024

However when I run the launch file I get this error

error

Am I doing something wrong?

from rh-p12-rn.

adrianwslee avatar adrianwslee commented on June 25, 2024

Looking at the robotis_controller file, I guess "Failed to load offset.yaml" is just a default ROS_WARN error when yaml file doesn't exist.

The next problem is what can I do with "creating timer thread filed error"

from rh-p12-rn.

ROBOTIS-zerom avatar ROBOTIS-zerom commented on June 25, 2024

The "creating timer thread failed" error is a permission issue.

To increase real-time scheduling priority(rtprio) for current user group, (if your group is robotis)

$ sudo bash -c 'echo "@robotis - rtprio 99" > /etc/security/limits.d/robotis-rtprio.conf'

reboot and launch manager.

or.. you should launch the manager in the root shell

$ sudo bash
# roslaunch rh_p12_rn_manager rh_p12_rn_manager.launch

from rh-p12-rn.

Related Issues (3)

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.