Hi! I am running ubuntu on a virtual machine and I want to send some terminal commands via matlab.
First, I want to set a path i.e. 'cd ~/interbotix_ws/src/interbotix_ros_arms/interbotix_gazebo/launch'
and then I want to run a command 'roslaunch gazebo.launch robot_name:=wx200'.
I am using system(cd ~/interbotix_ws/src/interbotix_ros_arms/interbotix_gazebo/launch') and then entering system('roslaunch gazebo.launch robot_name:=wx200'). However, it throws error. It doesn't seems that it navigates to the path where I want it to go.
Please help so that I can navigate to the path and run the other command successfully.