It is possible to execute the command line to record a rosbag from Matlab to the turtlebot. . I try with
if true % code rosdevice('MyIP','Username','Password') system(d,'rosbag record --duration=10 -o NameFile /odom') end
but I have an error: STDERR : bash : rosbag: command not found . I'm able to do this with the command -> openShell(d). And type in shell directly :
rosbag record --duration=10 -o NameFile /odom. After upload on my Matlab coomputer :
getfile(d,'path/name');
But if it is possible to do all this directly in Matlab without 'openShell', that will be great ! Thank you in advance for your help
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
Have you assigned the rosdevice object to d ?
I don't see it in your code.
Try this:
d = rosdevice('MyIP','Username','Password') system(d,'rosbag record --duration=10 -o NameFile /odom')
This will execute any system command on your rosdevice which is supported. Please check if you have set the ROS environment variables properly.
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment