Skip to content

Commit

Permalink
Init: add ftr draw robot.
Browse files Browse the repository at this point in the history
  • Loading branch information
luoshi006 committed Jan 19, 2022
0 parents commit bcbca89
Show file tree
Hide file tree
Showing 45 changed files with 7,077 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# OSX / *nix default autosave extension
*.m~
Binary file added doc/demo1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/robot_diff.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/robot_diff_demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions examples/demo_createRobot.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
clc; clear all; close all;

addpath('..');
meow_startup;

rbt1 = createRobot('diff', 'cuboid', 'y');
rbt1.name = 'rbt1';

wp = [0 2 6;...
0 0 6];
rd1 = createRoad(wp);
% drawRoad(rd1);

view(3);
for i=1:100
rbt1.wheels(1).rotAngle = deg2rad(i);
rbt1.wheels(2).rotAngle = deg2rad(i);
hdl = drawRobot(rbt1);
makeGif(getframe(gcf), 'robot_diff');
pause(0.01);
delete(hdl.group);
end

drawRobot(rbt1);
8 changes: 8 additions & 0 deletions meow_startup.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
%% project root
basedir = fileparts(which('meow_startup.m'));

%% add lib
addpath(fullfile(basedir, 'utils'));
addpath(fullfile(basedir, 'third/RoboticsToolbox'));
addpath(fullfile(basedir, 'visualization'));

30 changes: 30 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Meow
A Matlab Simulation Repo, now focus on robot visualization and Navigation planning.

## Contents

```sh
.
├── meow_startup.m # load lib path
├── doc # demo picture
├── examples # some demo and feature test
├── third # third lib
├── utils # create common object
└── visualization # draw object on current figure
```

## Demo
- Differential wheeled robot

<p align="center">
<img width="200" src="doc/robot_diff.gif">
</p>

- robot on the road

<p align="center">
<img width="380" src="doc/robot_diff_demo.png">
</p>

## Refs
- https://github.com/star2dust/Robotics-Toolbox
Loading

0 comments on commit bcbca89

Please sign in to comment.