ROS

ROS1: Understanding JointHandle

currently, I am trying to write a hardware_interface.cpp for my robot, more specifically, the write() part. According to this tutorial link, the below JointHandle writes the desired command into the cmd variable, which is the output of my …

Unable to return updated variable

I am trying to feed in and return a variable that is updated within a function. The program works and will update within the class, however I need the updated variable to return to the main program as the rest relies on this variable. It s…