Skip to content

Teleop example for the raspimouse written in Rust

License

Notifications You must be signed in to change notification settings

aakarsh/rustymouse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teleop example written in Rust for the raspimouse developed by RT Corporation

This package was originally inspired by Takashi Ogura package found here

First follow the instructions here to get the packages that will enable to you simulate the raspimouse in Gazebo.

First clone the project:

$ git clone https://github.com/surfertas/rustymouse.git

Then build the project:

$ cargo build

We first need to launch the simulation in Gazebo. (Make sure not to forget source devel/setup.bash) Go to ~/raspiouse_gazebo/launch

$ roscore&
$ roslaunch raspimouse_with_samplemaze.launch 

For the moment, ros.publish() doesnt accept the topic raspimouse/diff_drive_controller/cmd_vel so we need to use a python script to map between cmd_vel and the raspimouse/diff_drive_controller/cmd_vel topic.

Open a new window and go to rustymouse/script and run:

$ python topic_to_topic.py

Finally, run

$ cargo run --bin vel_publisher

You should be prompted to enter w,s,a,d. Use q to quit.

About

Teleop example for the raspimouse written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 75.2%
  • Python 24.8%