PickNikRobotics / ros_control_boilerplate

Provides a simple simulation interface and template for setting up a hardware interface for ros_control
BSD 3-Clause "New" or "Revised" License
244 stars 89 forks source link

Customize #57

Open arnolvalencia1 opened 2 years ago

arnolvalencia1 commented 2 years ago

I find your project very interesting, I would like to adapt it to my own robotic arm that I am developing

I have a question, how exactly should I use the codes to customize my work environment?

function findreplace() {
    grep -lr -e "$1" * | xargs sed -i "s/$1/$2/g" ;
}

function findreplacefilename() {
    find . -depth -name "*$1*" -exec bash -c 'for f; do base=${f##*/}; mv -- "$f" "${f%/*}/${base//'$1'/'$2'}"; done' _ {} +
}

findreplacefilename rrbot myrobot
findreplace rrbot myrobot
findreplace RRBot MyRobot
findreplace RRBOT MYROBOT
RobertWilbrandt commented 2 years ago

Hey, sorry for the late reply, i hope i can still provide some help.

From your question i cannot really see what you are trying to achieve. Do you want to implement your own simulated robot based on this simulated hardware interface? Or do you want to "fill out" the template in rrbot_hw_main.cpp for use in your custom robot?