auviitkgp / kraken_3.0 Goto Github PK
View Code? Open in Web Editor NEWSource code of Team AUV, IIT Kharagpur
Home Page: http://auviitkgp.github.io
License: BSD 3-Clause Clear License
Source code of Team AUV, IIT Kharagpur
Home Page: http://auviitkgp.github.io
License: BSD 3-Clause Clear License
To do tuning of Fuzzy controller, we tried to integrate dynamic plotting for two rostopics :
Issues :
With the first one : it is showing gibberish values on x-axis. http://wiki.ros.org/Clock#Using_Simulation_Time_from_the_.2BAC8-clock_Topic
Please have a look at the above link. I think we have to find a way to use time of uwsim.
With the second one the issue is that the subtopics like "orientation x" etc. are not being shown in the rqt_plot GUI.
The issue was first raised in this comment
References:
cc @auviitkgp/developers @auviitkgp/embedded-team @auviitkgp/maintainers
When i try to build the blob
package with clang++
, I get this error.
4 warnings generated.
[ 50%] Building CXX object CMakeFiles/blob.dir/src/ComponentLabeling.cpp.o
In file included from /home/pranay/ros_ws/kraken_3.0/vision_stack/blob/src/ComponentLabeling.cpp:2:
In file included from /home/pranay/ros_ws/kraken_3.0/vision_stack/blob/include/blob/ComponentLabeling.h:6:
/home/pranay/ros_ws/kraken_3.0/vision_stack/blob/include/blob/blob.h:16:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma warning( disable : 4786 )
^
/home/pranay/ros_ws/kraken_3.0/vision_stack/blob/src/ComponentLabeling.cpp:6:3: error: non-aggregate type 'const CvPoint' cannot be
initialized with an initializer list
{ {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}, {0, 1}, {1, 1} };
^~~~~~
/home/pranay/ros_ws/kraken_3.0/vision_stack/blob/src/ComponentLabeling.cpp:6:11: error: non-aggregate type 'const CvPoint' cannot be
initialized with an initializer list
{ {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}, {0, 1}, {1, 1} };
^~~~~~~
/home/pranay/ros_ws/kraken_3.0/vision_stack/blob/src/ComponentLabeling.cpp:6:20: error: non-aggregate type 'const CvPoint' cannot be
initialized with an initializer list
{ {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}, {0, 1}, {1, 1} };
^~~~~~~
/home/pranay/ros_ws/kraken_3.0/vision_stack/blob/src/ComponentLabeling.cpp:6:29: error: non-aggregate type 'const CvPoint' cannot be
initialized with an initializer list
{ {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}, {0, 1}, {1, 1} };
^~~~~~~~
/home/pranay/ros_ws/kraken_3.0/vision_stack/blob/src/ComponentLabeling.cpp:6:39: error: non-aggregate type 'const CvPoint' cannot be
initialized with an initializer list
{ {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}, {0, 1}, {1, 1} };
^~~~~~~
/home/pranay/ros_ws/kraken_3.0/vision_stack/blob/src/ComponentLabeling.cpp:6:48: error: non-aggregate type 'const CvPoint' cannot be
initialized with an initializer list
{ {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}, {0, 1}, {1, 1} };
^~~~~~~
/home/pranay/ros_ws/kraken_3.0/vision_stack/blob/src/ComponentLabeling.cpp:6:57: error: non-aggregate type 'const CvPoint' cannot be
initialized with an initializer list
{ {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}, {0, 1}, {1, 1} };
^~~~~~
/home/pranay/ros_ws/kraken_3.0/vision_stack/blob/src/ComponentLabeling.cpp:6:65: error: non-aggregate type 'const CvPoint' cannot be
initialized with an initializer list
{ {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}, {0, 1}, {1, 1} };
I added all the code that is required for the keyboard control module, as in the current master
tree.
Then, I copied the script runKraken_keyboard.sh
from the master tree. (find the file here)
I am using zsh as my default shell. I get the following error when I run ./Scripts/runKraken_keyboard.sh
:
➜ kraken_3.0 git:(indigo-devel) ✗ ./Scripts/runKraken_keyboard.sh
./Scripts/runKraken_keyboard.sh: 9: ./Scripts/runKraken_keyboard.sh: roscd: not found
./Scripts/runKraken_keyboard.sh: 10: cd: can't cd to kraken_3.0/Scripts/
./Scripts/runKraken_keyboard.sh: 11: ./Scripts/runKraken_keyboard.sh: ./kraken_visualization_launcher: not found
./Scripts/runKraken_keyboard.sh: 19: ./Scripts/runKraken_keyboard.sh: roscd: not found
./Scripts/runKraken_keyboard.sh: 20: cd: can't cd to kraken_3.0/simulator_stack/joystick_control/src/
python: can't open file 'main.py': [Errno 2] No such file or directory
The interesting (and the thing I just can't figure out) is that it all works fine when I run the commands in the script one by one. i.e.
➜ kraken_3.0 git:(indigo-devel) ✗ ./Scripts/kraken_visualization_launcher &
[1] 20896
➜ kraken_3.0 git:(indigo-devel) ✗ Starting UWSim...
Loading SimulatedDevices plugin: 'ForceSensor_Factory'
Loading SimulatedDevices plugin: 'SimDev_Echo_Factory'
processROSInterface:: unexpected child: visualize
. Setting localized world: 0.00021s
Loading URDF robot...
· package://kraken_visualization/kraken/robot/new_model_kraken.3ds: 0.025633s
· : 1e-06s
· : 1e-06s
· : 1e-06s
· : 1e-06s
· : 1e-06s
· : 1e-06s
· : 1e-06s
· : 1e-06s
· : 1e-06s
· : 1e-06s
· : 1e-06s
· Linking links...Robot successfully loaded. Total time: 0.010515s
0.036292s
Loading URDF robot...
· package://kraken_visualization/kraken/terrain/pool.osg: 0.013931s
· package://kraken_visualization/kraken/objects/gate_obstacle.osg: 0.017827s
· package://kraken_visualization/kraken/objects/buoy_blue.osg: 0.013402s
· package://kraken_visualization/kraken/objects/buoy_green.osg: 0.013979s
· package://kraken_visualization/kraken/objects/buoy_red.osg: 0.013215s
· package://kraken_visualization/kraken/objects/bins.osg: 0.014361s
· package://kraken_visualization/kraken/objects/marker.osg: 0.011685s
· package://kraken_visualization/kraken/objects/marker.osg: 0.011733s
· package://kraken_visualization/kraken/objects/marker.osg: 0.012311s
· package://kraken_visualization/kraken/objects/marker.osg: 0.011685s
· package://kraken_visualization/kraken/objects/shooter.osg: 0.016706s
· Linking links...Robot successfully loaded. Total time: 0.01213s
0.163365s
[ INFO] [1418747219.275247232]: ROSOdomToPAT subscriber on topic /kraken/simulator/dataNavigator
[ INFO] [1418747219.275396047]: ArmToROSJointState publisher on topic /kraken/simulator/joint_state
[ INFO] [1418747219.275604584]: ROSJointStateToArm subscriber on topic /kraken/simulator/joint_state_command
[ INFO] [1418747219.275849858]: VirtualCameraToROSImage publisher on topic /kraken/front_camera_info
[ INFO] [1418747219.305694880]: VirtualCameraToROSImage publisher on topic /kraken/bottom_camera_info
[ INFO] [1418747219.330693642]: Imu publisher on topic /kraken/simulator/imu
[ INFO] [1418747219.330979466]: ROSTwistToPAT subscriber on topic /kraken/simulator/twist
[ INFO] [1418747219.331109929]: PressureSensor publisher on topic /kraken/simulator/depth
[ INFO] [1418747219.331272760]: DVLSensor publisher on topic /kraken/simulator/dvl
[ INFO] [1418747219.331468791]: ROSPoseToPAT subscriber on topic /kraken/simulator/pose
➜ kraken_3.0 git:(indigo-devel) ✗ rosrun simulator_physics_model start_auv_model /kraken/physics_model/pose:=/kraken/simulator/pose &
[2] 21134
➜ kraken_3.0 git:(indigo-devel) ✗ rosrun joystick_control keyboard_control &
[3] 21247
➜ kraken_3.0 git:(indigo-devel) ✗ python simulator_stack/joystick_control/src/main.py
...
➜ kraken_3.0 git:(indigo-devel) ✗
And everything works as expected.
(I have tried to run the script from bash too, but that doesn't work either.)
Please help me figure this out. All of my code has been pushed to the indigo-devel branch at my fork.
File: https://github.com/auviitkgp/kraken_3.0/blob/indigo-devel/sensor_stack/seabotix/src/test.py
subscribing
, as it is not requiredWe are unable to access several subtopics explicitly in this rostopic. Whereas in /kraken/sensor/dvl we are able to access various topics explicitly : for example : /kraken/sensor/dvl/bi_x_axis, etc.
We want this functionality in this imu topic also.
For showing the present values of the force in the Python GUI, I need to use this package, And I am not able to do so. I had added the following line to the top of my main.py
file, as per your recommendation and also from Mission Planner.
import roslib;roslib.load_manifest('joystick_control')
siddharth@ubuntu:src$ python main.py
Traceback (most recent call last):
File "main.py", line 1, in <module>
import roslib;roslib.load_manifest('joystick_control')
File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest
sys.path = _generate_python_path(package_name, _rospack) + sys.path
File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/launcher.py", line 98, in _generate_python_path
packages = get_depends(pkg, rospack)
File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/launcher.py", line 51, in get_depends
vals = rospack.get_depends(package, implicit=True)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 227, in get_depends
s.update(self.get_depends(p, implicit))
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 227, in get_depends
s.update(self.get_depends(p, implicit))
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 227, in get_depends
s.update(self.get_depends(p, implicit))
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 221, in get_depends
names = [p.name for p in self.get_manifest(name).depends]
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 159, in get_manifest
return self._load_manifest(name)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 198, in _load_manifest
retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 190, in get_path
raise ResourceNotFound(name, ros_paths=self._ros_paths)
rospkg.common.ResourceNotFound: cmake_modules
ROS path [0]=/opt/ros/hydro/share/ros
ROS path [1]=/home/siddharth/ros_workspace
ROS path [2]=/opt/ros/hydro/share
ROS path [3]=/opt/ros/hydro/stacks
Please help me resolve this.
bootstrap.sh
bash script?python-scipy
and scikit-fuzzy
and required dependencies.@aniket11bh @kalyan-kumar Anything that I am missing?
Untested Merge: 1a1ae47
related to #84 .
http://wiki.ros.org/roscpp/Overview/Logging
http://wiki.ros.org/rospy/Overview/Logging
ROS has inbuilt support for Logging. We just have to use it.
We will have to port all of our code from existing cout
, std::cout
and print
statements to ROS_INFO
, ROS_DEBUG
, etc.
It would be helpful if everyone quickly edited their projects and made these changes, and opened a PR. I would be able to merge them in fast.
Also, I would urge whoever is writing code from here on out to strictly use these instead of using stray cout
and print
statements in C++ and Python, respectively. (cc @kalyan-kumar , Barno and Priyank)
Opinions? @prudhvid @nevinvalsaraj @VishnuDuttSharma
cc @auviitkgp/developers @auviitkgp/embedded-team
Source: https://github.com/auviitkgp/kraken_3.0/blob/indigo-devel/.gitignore#L7
**/msg/*Action.msg
**/msg/*ActionFeedback.msg
**/msg/*ActionGoal.msg
**/msg/*ActionResult.msg
**/msg/*Feedback.msg
**/msg/*Goal.msg
**/msg/*Result.msg
**/msg/_*.py
We found this problem when @aniket11bh tried to add a message file called controllerResult.msg
inside kraken_msgs/msg/
folder.
@nevinvalsaraj :
cc @prudhvid @auviitkgp/developers
File: https://github.com/auviitkgp/kraken_3.0/blob/indigo-devel/sensor_stack/seabotix/src/t.py
7F
clearly mentioned in it.sudo usermod -a -G dialout teamauv
or sudo adduser teamauv dialout
groups teamauv
Add this to a file called FreshInstallSetup.md
(or such) containing information on what to do when first the vehicle is setup. (including the network setup screenshots and data)
cc @kalyan-kumar @aniket11bh @prudhvid @nevinvalsaraj
The code was imported and has been pushed at this commit: ac83f92
Do you want to merge this commit into the main branch?
Check topicHeader.cpp
for SENSOR_IMU_NEW
.
cc @aniket11bh @kshitijgoel007 @auviitkgp/developers
@prudhvid : Add a subscriber to listen to topic "/kraken/forceData4Thruster" for 4 thruster model and "/kraken/forceData6Thruster" model.
For 4 thruster model, you can make the column corresponding to sway thrusters zeros
Hi Guys,
I have seen that you people are using Sparton IMU for your bot. I have contacted one of your senior who(Atithya Kumar) worked on the AUV, he told me to contact you guys for support. I have some doubts in integrating the Sparton IMU sensor can you please help me out.
Want to use an image inside the Wiki? Paste it here, and copy the link and use it there.
Currently, the list of packages is:
cc @prudhvid @nevinvalsaraj Any other packages that you feel are not useful anymore? Probably in the simulator_stack?
fyi @auviitkgp/developers
The topic
/kraken/control/thruster6pid
has to be remapped to
/kraken/physics_model/forceData6Thruster
and the corresponding four thruster model topics.
References: Comment by @prudhvid
Find the package here: https://github.com/auviitkgp/kraken_obsolete/tree/master/vision_gui
Guideline: http://stackoverflow.com/a/14013231/2080089
@rsrihari: Also, add the command that needs to be used in order to run the simulator.
I would like the wiki to be bundled into this repository itself (perhaps inside a docs/
folder ? )
Having the wiki on GH is slightly less useful without internet (as on the vehicle)
@prudhvid @nevinvalsaraj Suggestions?
I propose the separation of this task into two parts:
Each package has a launch file (if it has any dependencies).
Eg: buoy
package will have a launch file that will run bottomcam
package,
There will be some global launch files, for specific tasks: such as:
YawControl
(to run all dependencies of YawControl)BuoyTask
(which will include the particular package's launch file after running other packages)imuDvl
(to run the IMU and the DVL)Opinions: @prudhvid @nevinvalsaraj @auviitkgp/embedded-team
cc @aniket11bh
sparton
package./kraken/sensor/imu_2
) (First pull request)@prudhvid @nevinvalsaraj Opinions on the above procedure?
cc @auviitkgp/developers
It would really help if someone else can test this on their machine as well. @kshitijgoel007 @kalyan-kumar @ManviG Can you guys check and tell me what's really going on?
Opinions? @prudhvid @nevinvalsaraj
cc @auviitkgp/developers
@routeaccess we're ignoring makefile. Remove it from .gitignore
@routeaccess
If it has no important code on it, then it can be deleted, so as to have a streamlined branch lineup.
@ankeshanand @routeaccess
The data of imu_sensor from simulator is redundant and it needs to be fixed.
Pressure sensor is working fine.
roslaunch Scripts runKraken.launch
roscd mission_planner
python src/main.py
This runs the simulator and bot inside the uwsim but acceleration data's from imu is all zeros :(
Whatever changes has been done in Thruster converter
package it is not working in our laptops. @icyflame , @prudhvid , @kalyan-kumar Please check it once on your laptops with the simulator.
The code which is on my repo (not updated with auviitkgp/kraken_3.0) is working fine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.