Giter VIP home page Giter VIP logo

mushr's People

Contributors

gilwoolee avatar johannesburg avatar markusschiffer avatar mushrinstall avatar palanc avatar rockett8855 avatar rockettm avatar schmittlema avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mushr's Issues

Going in reverse

Hi, I want the car to switch behavior from going forward to going in reverse based on the path that I give. Right now, the car goes all the time forward and I am not sure how to switch to the reverse behavior automatically based on the path the controller receives.

Would you be able to help me with this?

Many thanks for considering my request.

Bug with push button

Describe the bug

process[car/state_publisher-16]: started with pid [14068]
Traceback (most recent call last):
  File "/home/robot/catkin_ws/src/mushr/mushr_hardware/push_button_utils/src/push_button.py", line 3, in <module>
    import Jetson.GPIO as GPIO
  File "/usr/local/lib/python2.7/dist-packages/Jetson/GPIO/__init__.py", line 1, in <module>
    from .gpio import *
  File "/usr/local/lib/python2.7/dist-packages/Jetson/GPIO/gpio.py", line 23, in <module>
    from Jetson.GPIO import gpio_pin_data
  File "/usr/local/lib/python2.7/dist-packages/Jetson/GPIO/gpio_pin_data.py", line 560
    msg = f"Environment variable 'JETSON_MODEL_NAME={model_name}' is invalid."
                                                                             ^
SyntaxError: invalid syntax
[car/push_button-14] process has died [pid 14050, exit code 1, cmd /home/robot/catkin_ws/src/mushr/mushr_hardware/push_button_utils/src/push_button.py __name:=push_button __log:=/home/robot/.ros/log/ed4a237a-c4a3-11ed-b0ca-0e569ec1aa55/car-push_button-14.log].
log file: /home/robot/.ros/log/ed4a237a-c4a3-11ed-b0ca-0e569ec1aa55/car-push_button-14*.log

To Reproduce
Steps to reproduce the behavior:

  1. Open terminal
  2. roslaunch mushr_base teleop.launch
  3. See log attached

Environment

  • OS: Ubuntu 18.04 LTS
  • Platform: Jetson Nano
  • Library versions: ROS melodic, python 2.7.17

ed4a237a-c4a3-11ed-b0ca-0e569ec1aa55.zip

New Version with namespaces /car

Hi
I am following the Navigation Tutorial using a real car.
Thanks for the MuSHR tutorials.
I wouldn't have been able to get this far without the MuSHR tutorials.
MuSHR seems to have two versions: without and with namespaces "/car".
Since I started with the SD card image of the version without namespace, I had a bit of a hard time because of the namespace.
Eventually, I replaced the initial version with the namespace version, using mushr_install.sh.

I installed JetPack of Nvidia Jetson Nano, then executed the script of mushr_install.sh.
The namespaces version has been installed successfully.

Additionally, I installed the gmapping and the navigation stack.
$ cd ~/catkin_ws/src/
$ git clone https://github.com/ros-perception/openslam_gmapping.git
$ git clone https://github.com/ros-perception/slam_gmapping.git

$ git clone https://github.com/prl-mushr/mushr_rhc.git
$ git clone https://github.com/prl-mushr/mushr_pf.git
$ cd ~/catkin_ws && catkin_make

I made a map with gmapping.
$ rosrun gmapping slam_gmapping scan:=/car/scan _base_frame:=/car/base_link

so far so good.
I copied the map file to ~/catkin_ws/src/mushr_rhc/mushr_rhc_ros/maps/
and changed the map name into real-floor0-edited such as real-floor0-edited.pgm and real-floor0-edited.yaml.

In navigation, mushr_pf seems to work well.
$ roslaunch mushr_pf real.launch

But, mushr_rhc_ros shows some errors.
$ roslaunch mushr_rhc_ros real.launch

[car/rhcontroller-3] process has died ......

Screenshot from 2020-11-28 21-43-19

What did I wrong?
I guess the namespaces version doesn't seem to match well with pf and rhc.
Otherwise, have I missed some libraries or dependencies for rhc?

Thanks a lot in advance.

Adapting the Mujoco model to enable drifting

Discussed in #59

Originally posted by silverjoda November 24, 2021
Dear Mushr team,

I'm currently working with a student on a sim-to-real project for a buggy car and recently came across the
Mujoco model that you have in your project. I had issues trying to make it drift (wheel slip) so I opened a issue on the mujoco
github page, where the authors were kind enough to help me solve my issue so I am here to inform of a subtle problem that exists with the model, and also how to set parameters of the model so that one can do drifts with it.

The issue:
If you lower the wheel friction then the car starts to exhibit strange behavior. This is caused by the following:

  1. The mesh used for the wheels is not well centered and causes wheel bouncing
  2. There is no suspension which leads to uneven forces on the wheels
  3. The contacts are very hard which causes bouncing.

The solution:

  1. Use a correctly scaled and centered ellipsoid as the collision instead of a mesh
  2. I added a very simple spring damper to each wheel
  3. setting the first parameter on solimp to zero makes the contacts soft. This has to be present on both contacting bodies to work apparently.

If anyone is interested, here is the modified models directory that you can just copy paste into the package. I suggest using the mujoco "simulate" binary which you can just run and then click and drop the one_car.xml model into the simulation, press "c" to see contacts and use the sliding bar for actuation.
models.zip

output.mp4

Thanks, T

ESC and Servo

Hi there, it is a great project and I do appreciate what you have done! I am wondering if there are specific reasons that you are not using the ESC and servo coming with the car?

small error in repos.yaml

when I execute
vcs import < repos.yaml
It throws this error :
=== ./range_libc (git) === Could not checkout ref 'master': error: pathspec 'master' did not match any file(s) known to git.
Apparently the github repository ( https://github.com/kctess5/range_libc ) has no branch by the name of "master" (maybe they changed it?)
The fix is really simple, in the repos.yaml, simply change the "version" of rangelib_c to "deploy".

Also, people that are new to github or haven't used ssh before should be told to first get an ssh key before running that command (I got stuck there for about an hour before I realized what the problem was).

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.