GithubHelp home page GithubHelp logo

Comments (5)

jiban-jyoti avatar jiban-jyoti commented on August 20, 2024

Steps to produce the error:

  • first create a directory in <catkin_ws>/src catkin workspace.
  • Copy the behavior xml file from visualstates-examples folder to this newly created directory.
  • Then navigate to the behavior directory in the command line.
  • While you are in this directory, run visualstates and generate python code by running rosrun visualstates main.py kobuki_bump_and_go.xml
  • In GUI generate python code and close the visualstates.
  • run catkin_make in the catkin workspace directory and make sure that generated kobuki_bump_and_go.py is executable.
  • make it executable by running chmod +x kobuki_bump_and_go.py in the directory of the behavior.
  • Finally you should be able to run the behavior with rosrun kobuki_bump_and_go kobuki_bump_and_go.py --displaygui=true
    After this step the error will pop up.

from visualstates-examples.

pushkalkatara avatar pushkalkatara commented on August 20, 2024

Hi @jiban-jyoti . yes maybe the xml files for obstacle avoidance were created with older version of VisualStates. It would be nice if you can recreate the example with latest version of VisualStates.

Else, you can try with prius examples (https://jderobot.github.io/VisualStates/examples/prius_in_the_city) We'll update the Obstacle avoidance based examples soon.

from visualstates-examples.

jiban-jyoti avatar jiban-jyoti commented on August 20, 2024

Hello @pushkalkatara. I will definitely check the prius examples.
Also, I want to recreate the examples based on kobuki. Can you give me certain points or suggestion so that I can start working on it.

from visualstates-examples.

pushkalkatara avatar pushkalkatara commented on August 20, 2024

Yes sure!

There is detailed description about Global and Local namespace usage in VisualState here - https://jderobot.github.io/VisualStates/features/namespace

ObstacleAvoidance example is certainly simple, it uses a simple idea that if the laser sensor's value is less than a threshold, the robot has to rotate and avoid the obstacle.

Implementation details:

  1. Use turtlebot with laser enabled, make a subscriber using VisualStates to read the laser data.
  2. Create two states "Go" and "Turn" and connect them with a transition.
  3. Create a function calculate_obstacle (refer here) and use in the tranisition condition.
  4. Publish twist command in each state, in the Go state, publish twist with linear velocity component. in the Turn state, publish twist with angular velocity component.

Let me know if you face any issues.

from visualstates-examples.

pankhurivanjani avatar pankhurivanjani commented on August 20, 2024

Solved for kobuki obstacle avoidance in #27

from visualstates-examples.

Related Issues (14)

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.