Comments (5)
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.
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.
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.
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:
- Use turtlebot with laser enabled, make a subscriber using VisualStates to read the laser data.
- Create two states "Go" and "Turn" and connect them with a transition.
- Create a function calculate_obstacle (refer here) and use in the tranisition condition.
- 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.
Solved for kobuki obstacle avoidance in #27
from visualstates-examples.
Related Issues (14)
- [Example Data] Prius data is redundant with every example. HOT 1
- Prius Example Updates
- Prius plugins not supported with Gazebo 9. HOT 2
- Robotic Arm Letter Draw Behavior HOT 1
- Demo gif in README for each example with links. HOT 3
- kobuki examples with latest release of VisualStates HOT 3
- prius_crossing update with new multiple prius support structure
- No Cloverleaf model in prius_gazebo directory HOT 1
- prius_overtake error HOT 1
- Issue with running kobuki obstacle avoidance (example) in python with ROS1 HOT 2
- Issue while executing kobuki bump-and-go HOT 12
- Error while using new release of visualstates for kobuki bump and go exercise
- Error while running prius examples for ros-melodic HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from visualstates-examples.