Giter VIP home page Giter VIP logo

kraken_3.0's People

Contributors

aniket11bh avatar ankeshanand avatar athityakumar avatar dkuntal avatar ghostwriternr avatar icyflame avatar kalyan-kumar avatar manvig avatar nevalsar avatar parth-vader avatar prudhvid avatar sahashranshu avatar vinayyadav3016 avatar vishnuduttsharma 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

Watchers

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

kraken_3.0's Issues

Integrating rqt_plot with the data published by simulator on the IMU and DVL topics

To do tuning of Fuzzy controller, we tried to integrate dynamic plotting for two rostopics :

  1. /kraken/sensor/dvl/bi_x_axis
  2. /kraken/sensor/imu

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.

Error in blob package

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} };

Issue for uploading Photos to GitHub

  • Whenever using photos in a Wiki, always upload them to this issue and then use their URL in the wiki.
  • This issue will be closed as soon as it is created.

[ros-indigo] [14.04] Keyboard control: Code working, Bash script not working.

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.

Rename the repository as auv-core

  • It's easier to type-out and search.
  • We won't have to rename the repository again for the new vehicle.
  • '-core' packages is the de-facto naming convention for core libraries.
  • Renaming is easy, and doesn't break anything down.

[hydro] [12.04] Using the kraken_msgs package in ROSpy

@prudhvid

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.

Moving to a proper logging system

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


Packages yet to port over to logging system

  • NqDVL /home/siddharth/ros_workspace/kraken_3.0/sensor_stack/NqDVL
  • Scripts /home/siddharth/ros_workspace/kraken_3.0/Scripts
  • SerialPort /home/siddharth/ros_workspace/kraken_3.0/hardware_stack/SerialPort
  • Telemetry /home/siddharth/ros_workspace/kraken_3.0/gui_stack/Telemetry
  • absolute_rpy_publisher /home/siddharth/ros_workspace/kraken_3.0/control_system_stack/absolute_rpy_publisher
  • actionmsg /home/siddharth/ros_workspace/kraken_3.0/vision_stack/actionmsg
  • blob /home/siddharth/ros_workspace/kraken_3.0/vision_stack/blob
  • bottomcam /home/siddharth/ros_workspace/kraken_3.0/vision_stack/camera/bottomcam
  • control_server /home/siddharth/ros_workspace/kraken_3.0/control_system_stack/control_server
  • controller_basic /home/siddharth/ros_workspace/kraken_3.0/control_system_stack/controller_basic
  • depth_sensor /home/siddharth/ros_workspace/kraken_3.0/sensor_stack/depth_sensor
  • frontcam /home/siddharth/ros_workspace/kraken_3.0/vision_stack/camera/frontcam
  • gui_control /home/siddharth/ros_workspace/kraken_3.0/gui_stack/gui_control
  • gui_controller_loader /home/siddharth/ros_workspace/kraken_3.0/gui_stack/gui_controller_loader
  • gui_template /home/siddharth/ros_workspace/kraken_3.0/gui_stack/gui_template
  • ip_msgs /home/siddharth/ros_workspace/kraken_3.0/msgs_stack/ip_msgs
  • joystick_control /home/siddharth/ros_workspace/kraken_3.0/simulator_stack/joystick_control
  • keyboard_control /home/siddharth/ros_workspace/kraken_3.0/control_system_stack/keyboard_control
  • kraken_msgs /home/siddharth/ros_workspace/kraken_3.0/msgs_stack/kraken_msgs
  • kraken_visualization /home/siddharth/ros_workspace/kraken_3.0/simulator_stack/kraken_visualization
  • manual_control /home/siddharth/ros_workspace/kraken_3.0/control_system_stack/manual_control
  • mission_planner /home/siddharth/ros_workspace/kraken_3.0/mission_planner_stack/mission_planner
  • nqDVL /home/siddharth/ros_workspace/kraken_3.0/sensor_stack/nqDVL
  • pose_server /home/siddharth/ros_workspace/kraken_3.0/mission_planner_stack/pose_server
  • pose_server_python /home/siddharth/ros_workspace/kraken_3.0/mission_planner_stack/pose_server_python
  • premap /home/siddharth/ros_workspace/kraken_3.0/mission_planner_stack/premap
  • resources /home/siddharth/ros_workspace/kraken_3.0/resources
  • seabotix /home/siddharth/ros_workspace/kraken_3.0/sensor_stack/seabotix
  • simulator_physics_model /home/siddharth/ros_workspace/kraken_3.0/simulator_stack/simulator_physics_model
  • simulator_to_kmsgs /home/siddharth/ros_workspace/kraken_3.0/simulator_stack/simulator_to_kmsgs
  • simulator_to_navpose /home/siddharth/ros_workspace/kraken_3.0/simulator_stack/simulator_to_navpose
  • sparton /home/siddharth/ros_workspace/kraken_3.0/sensor_stack/sparton
  • task_buoy /home/siddharth/ros_workspace/kraken_3.0/vision_stack/task_buoy
  • task_marker /home/siddharth/ros_workspace/kraken_3.0/vision_stack/task_marker
  • thruster_converter /home/siddharth/ros_workspace/kraken_3.0/control_system_stack/thruster_converter
  • thruster_force_converter /home/siddharth/ros_workspace/kraken_3.0/simulator_stack/thruster_force_converter
  • tracks_imu /home/siddharth/ros_workspace/kraken_3.0/sensor_stack/tracks_imu
  • trax /home/siddharth/ros_workspace/kraken_3.0/sensor_stack/trax
  • vgateclient /home/siddharth/ros_workspace/kraken_3.0/vision_stack/validationgate/vgateclient
  • vgatedetect /home/siddharth/ros_workspace/kraken_3.0/vision_stack/validationgate/vgatedetect
  • vgateserver /home/siddharth/ros_workspace/kraken_3.0/vision_stack/validationgate/vgateserver
  • videoread /home/siddharth/ros_workspace/kraken_3.0/vision_stack/camera/videoread
  • vision_gui /home/siddharth/ros_workspace/kraken_3.0/vision_stack/vision_gui

gitignore is set to ignore these message files

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 :

  • Why had you added these lines?
  • Don't we think we should make them more specific?

cc @prudhvid @auviitkgp/developers

simulator_physic_model

@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

Sparton IMU

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.

Handling the wiki of our repo

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?

Create launch files to be run on the vehicle

I propose the separation of this task into two parts:

  1. Each package has a launch file (if it has any dependencies).

    Eg: buoy package will have a launch file that will run bottomcam package,

  2. 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

Change the IMU message type to Sensor_msgs/Imu

  • Will standardize the message type for IMU messages that we are using.
  • Will help out a lot when using standard ROS packages / plugins (such as ros-control-center referred to here)

Migration Procedure

  • We edit the sparton package.
  • We publish the new message type on a second IMU topic (/kraken/sensor/imu_2) (First pull request)
  • We start editing the modules using IMU data. (One pull request per module)
  • We can slowly phase out the old topic once we are sure no other packages depend on it.

@prudhvid @nevinvalsaraj Opinions on the above procedure?

cc @auviitkgp/developers

IMU and DVL not working on UWSim

@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 :(

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.