Closed lia2790 closed 2 years ago
These two should do the job. Notice that, in the second case, you will find the file content of the textfile under srdf_path/content
joint_impedance_control:
thread: rt_main
type: joint_impedance_control
params:
urdf_path: {value: $(rospack find vir_singlejoint)/robots/6dof/urdf/6dof.urdf, type: string, shell: true}
srdf_path: {value: $(rospack find vir_singlejoint)/robots/6dof/srdf/6dof.srdf, type: file}
@lia2790 did you tried @alaurenzi suggestion? Can we close this?
Hi, yes I tried again with the lastest version of xbot2 (xbot2-core version: 2.2.0 (734fd97)) and it is still not working
Did you try to mimic the snippet I provided ?
sorry yes now i tried and I have the same issue, it does not take the path correctly... I am creating a proper branch in the repo VariableImpedanceRegulation in order to solve this problem as luca suggested
Does type: file
work?
This I did not try, are both of them equal?
Anyway I tried but I obtained a strange error, I mean It returns some errors which seem that some params have not been read as supported to. I mean with the all path I did not get any error and the code works as expected
Can you report the error here?
Yes, I obtain the following errors continuously
ERROR in setDamping : D has wrong size 7 != chain joint number 0
ERROR operator() : you are requesting a chain with name arm that does not exists!!
ERROR in setStiffness : K has wrong size 7 != chain joint number 0
ERROR operator() : you are requesting a chain with name arm that does not exists!!
ERROR in setDamping : D has wrong size 7 != chain joint number 0
ERROR operator() : you are requesting a chain with name arm that does not exists!!
ERROR in setStiffness : K has wrong size 7 != chain joint number 0
ERROR operator() : you are requesting a chain with name arm that does not exists!!
ERROR in setDamping : D has wrong size 7 != chain joint number 0
ERROR operator() : you are requesting a chain with name arm that does not exists!!
ERROR in setStiffness : K has wrong size 7 != chain joint number 0
ERROR operator() : you are requesting a chain with name arm that does not exists!!
I push it in the last commit 80249e5180ab29ca1988c6a9153068103840e8a3
This does not seem directly related to parameter loading or shell expansion.. can you check that the parameter value you get from inside the plugin is indeed what you expect (i.e. the same as the output of echo <param-value>
on the shell)?
My computer was blocked due to gazebo simulation then I switched it off, re-started... I did all the changes required (add the print to check the string and compile it) ... then the code works with type:file ... very strange but actually it works so we can close this issue
Thanks @alaurenzi !
Hi all,
I am trying to avoid absolute path in xbot control plugin passed as a parameter as mentioned here.
Basically, I want to change the code below
into the following
in such a way to have a more portable code.
I tried this but I obtain an error as below
To replicate the error
roslaunch vir_singlejoint vir_6dof_gazebo.launch
in a terminal./setup_xbot2_gz_6dof.sh
in other terminal