Posts

Showing posts from July, 2025

learning simulink

Bus creator, bus selector and bus assignment BUS creator, selector and assignment

turtlebot3 simulation

# Terminal 1 - Launch Gazebo with TurtleBot3 roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch setenv('ROS_MASTER_URI', 'http://localhost:11311') % or if ROS master is on same machine setenv('ROS_IP', '100.64.129.99') % your Wi-Fi IP address here rosinit under unitree_legged_msgs folder in matlab: rosgenmsg >>addpath('/home/bijen/bijen_ws/src/matlab_msg_gen_ros1/glnxa64/install/m') savepath >> clear classes rehash toolboxcache >>rosmsg list % 1. Connect to ROS (assuming roscore is running and Gazebo is started) rosinit('http:// :11311') % Replace with actual ROS master IP % 2. Create publisher pub = rospublisher('/fourbar_description/j1_lf_controller/command', 'unitree_legged_msgs/MotorCmd'); % 3. Create message msg = rosmessage(pub); % 4. Set fields msg.Mode = int32(10); msg.Q = 0.0; msg.Dq = 0.0; msg.Tau = 0.0; msg.Kp = 0.0; msg.Kd = 0.0; msg.Reserve = int32([0 0 0])...

Matlab in linux

downloadly.ir: setup file zip, mount iso file: open terminal: ./install enter key, type license.lic file location include ROS toollist, robotics system tool etc replace libmwlmgrimpl.so file in /home/bijen/matlab/bin/glnxa64/matlab_startup_plugins/lmgrimpl to open: /home/bijen/matlab/bin/matlab create shortcut sudo nano /usr/share/applications/matlab.desktop [Desktop Entry] Type=Application Name=MATLAB R2022b Icon=/home/bijen/Downloads/matlabicon.png Exec=/home/bijen/matlab/bin/matlab -desktop Comment=Start MATLAB R2022b Categories=Development;Education; Terminal=false sudo apt update sudo apt install python3.9 python3.9-venv python3.9-dev //for matlab 3.9 reqd which python3.9 /usr/bin/python3.9 //locate this for setting rosToolboxPreferences >> ver('ros') -------------------------------------------------------------------------------------------------------- MATLAB Version: 9.13.0.2049777 (R2022b) MATLAB License Number: 968398 Operating System: Linux 5.15.0-1079-int...