Coder Social home page Coder Social logo

Comments (10)

ted-miller avatar ted-miller commented on August 15, 2024 1

Dunno. I'll continue debug next week.

from motoros2.

ted-miller avatar ted-miller commented on August 15, 2024

Additionally, this issue occurs on Foxy, Galactic, and Humble. The ROS2 version is not the reason for this issue.

from motoros2.

ted-miller avatar ted-miller commented on August 15, 2024

I restored an old CMOS.bin for other reasons.

When trying to run my FJT script, it says that I didn't have velocity data for all axes. Well... scrolling up through the log, I see that all of the joint names are blank.

So now I'm thinking that the JointStates publisher is broken because of the lack of joint-names.
CMOS.zip

I will continue debug next week.

from motoros2.

gavanderhoorn avatar gavanderhoorn commented on August 15, 2024

When trying to run my FJT script, it says that I didn't have velocity data for all axes. Well... scrolling up through the log, I see that all of the joint names are blank.

if you don't configure custom ones, you should get the default ones generated:

BOOL bShouldSetJointNamesToDefaultValues = (strlen(g_nodeConfigSettings.joint_names[0]) == 0);
//==================================
//Create control groups
g_Ros_Controller.totalAxesCount = 0;
// Check for each group
for(groupIndex=0; groupIndex < MAX_CONTROLLABLE_GROUPS; groupIndex++)
{
if(groupIndex < g_Ros_Controller.numGroup)
{
// Determine if specific group exists and allocate memory for it
g_Ros_Controller.ctrlGroups[groupIndex] = Ros_CtrlGroup_Create(groupIndex, //Zero based index of the group number(0 - 3)
(groupIndex==(g_Ros_Controller.numGroup-1)), //TRUE if this is the final group that is being initialized. FALSE if you plan to call this function again.
g_Ros_Controller.interpolPeriod); //Value of the interpolation period (ms) for the robot controller.
if(g_Ros_Controller.ctrlGroups[groupIndex] != NULL)
{
Ros_CtrlGroup_GetPulsePosCmd(g_Ros_Controller.ctrlGroups[groupIndex], g_Ros_Controller.ctrlGroups[groupIndex]->prevPulsePos); // set the current commanded pulse
g_Ros_Controller.totalAxesCount += g_Ros_Controller.ctrlGroups[groupIndex]->numAxes;
if (bShouldSetJointNamesToDefaultValues) //joint names were NOT specified in the yaml config file
{
for (int jointIndex = 0; jointIndex < g_Ros_Controller.ctrlGroups[groupIndex]->numAxes; jointIndex += 1)
{
sprintf(g_nodeConfigSettings.joint_names[(groupIndex * MP_GRP_AXES_NUM) + jointIndex], DEFAULT_JOINT_NAME_FMT, groupIndex + 1, jointIndex + 1);
}
}

from motoros2.

ted-miller avatar ted-miller commented on August 15, 2024

Yeah... I just now saw that too.
So now I don't know what's up and my system is extra broken.

from motoros2.

gavanderhoorn avatar gavanderhoorn commented on August 15, 2024

Would you have a sample of the /joint_states topic?

from motoros2.

ted-miller avatar ted-miller commented on August 15, 2024

/joint_states won't publish. topic echo just freezes until I ctrl-c.

However, I am able to view the topics for each individual control-group, such as /ctrl_groups/r1/joint_states. That works fine.

from motoros2.

gavanderhoorn avatar gavanderhoorn commented on August 15, 2024

Hm, wireshark? Any XRCE-DDS traffic?

from motoros2.

ted-miller avatar ted-miller commented on August 15, 2024

The missing velocity-data had nothing to do with this issue. There was an error in my script and it was a legit error.

from motoros2.

ted-miller avatar ted-miller commented on August 15, 2024

Also occurs on R1+R2+B1+B2

from motoros2.

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.