Ask Your Question

Vivek's profile - activity

2016-06-23 13:43:30 -0500 received badge  Famous Question (source)
2016-06-23 13:43:30 -0500 received badge  Notable Question (source)
2016-05-05 01:52:34 -0500 received badge  Popular Question (source)
2016-04-27 16:19:40 -0500 asked a question How to run a servo using a pixhawk through MAVROS Offboard mode?

Hi,

I am using the a pixhawk connected to the odroid for a quadcopter. I am detecting the obstacles using a LIDAR. I am attaching the lidar to a servo so that I can do a lidar sweep.I am running the pixhawk in offboard mode and trying to control the servo motor through the auxiliary ports (AUX). We found a way in this link below.

https://groups.google.com/forum/m/#!t...

But the problem is that there is a problem in using nutshell with the pixhawk, Everytime I use the command below, I get either gibberish or a line saying that [Screen Is Terminating].

screen /dev/ttyACM0 BAUD_RATE 8N1

I have tried different baud rates like 57600 115200 921600 9600. None of them seem to work.

Kindly let me know if you a solution for this or if there is an alternative to controlling the servo using pixhawk.

Thanks, Vivek

2016-04-25 11:54:29 -0500 received badge  Famous Question (source)
2016-04-25 11:54:29 -0500 received badge  Notable Question (source)
2016-02-18 11:15:59 -0500 received badge  Enthusiast
2016-02-17 18:30:35 -0500 asked a question Unable to create a ros message as per the tutorial

rosmsg show beginner_tutorials/Num

I am getting the following error running the above command.

Unable to load msg [beginner_tutorials/Num]: Cannot locate message [Num]: unknown package [beginner_tutorials] on search path [{'rosconsole': ['/opt/ros/indigo/share/rosconsole/msg'], 'catkin': ['/opt/ros/indigo/share/catkin/msg'], 'qt_dotgraph': ['/opt/ros/indigo/share/qt_dotgraph/msg'], 'urdf': ['/opt/ros/indigo/share/urdf/msg'], 'rosgraph': ['/opt/ros/indigo/share/rosgraph/msg'], 'rqt_py_console': ['/opt/ros/indigo/share/rqt_py_console/msg'], 'nodelet_topic_tools': ['/opt/ros/indigo/share/nodelet_topic_tools/msg'], 'rqt_graph': ['/opt/ros/indigo/share/rqt_graph/msg'], 'nodelet_tutorial_math': ['/opt/ros/indigo/share/nodelet_tutorial_math/msg'], 'qt_gui': ['/opt/ros/indigo/share/qt_gui/msg'], 'filters': ['/opt/ros/indigo/share/filters/msg'], 'smclib': ['/opt/ros/indigo/share/smclib/msg'], 'rosparam': ['/opt/ros/indigo/share/rosparam/msg'], 'roscpp_serialization': ['/opt/ros/indigo/share/roscpp_serialization/msg'], 'diagnostic_msgs': ['/opt/ros/indigo/share/diagnostic_msgs/msg'], 'rosbuild': ['/opt/ros/indigo/share/rosbuild/msg'], 'libmavconn': ['/opt/ros/indigo/share/libmavconn/msg'], 'tf': ['/opt/ros/indigo/share/tf/msg'], 'rqt_publisher': ['/opt/ros/indigo/share/rqt_publisher/msg'], 'roslang': ['/opt/ros/indigo/share/roslang/msg'], 'geometric_shapes': ['/opt/ros/indigo/share/geometric_shapes/msg'], 'smach_ros': ['/opt/ros/indigo/share/smach_ros/msg'], 'rqt_web': ['/opt/ros/indigo/share/rqt_web/msg'], 'shape_msgs': ['/opt/ros/indigo/share/shape_msgs/msg'], 'trajectory_msgs': ['/opt/ros/indigo/share/trajectory_msgs/msg'], 'diagnostic_aggregator': ['/opt/ros/indigo/share/diagnostic_aggregator/msg'], 'mavros': ['/opt/ros/indigo/share/mavros/msg'], 'smach_msgs': ['/opt/ros/indigo/share/smach_msgs/msg'], 'resource_retriever': ['/opt/ros/indigo/share/resource_retriever/msg'], 'rqt_topic': ['/opt/ros/indigo/share/rqt_topic/msg'], 'smach': ['/opt/ros/indigo/share/smach/msg'], 'rqt_action': ['/opt/ros/indigo/share/rqt_action/msg'], 'xacro': ['/opt/ros/indigo/share/xacro/msg'], 'rqt_top': ['/opt/ros/indigo/share/rqt_top/msg'], 'rqt_rviz': ['/opt/ros/indigo/share/rqt_rviz/msg'], 'rosgraph_msgs': ['/opt/ros/indigo/share/rosgraph_msgs/msg'], 'rosboost_cfg': ['/opt/ros/indigo/share/rosboost_cfg/msg'], 'genmsg': ['/opt/ros/indigo/share/genmsg/msg'], 'control_toolbox': ['/opt/ros/indigo/share/control_toolbox/msg'], 'turtle_tf2': ['/opt/ros/indigo/share/turtle_tf2/msg'], 'rqt_robot_dashboard': ['/opt/ros/indigo/share/rqt_robot_dashboard/msg'], 'pluginlib': ['/opt/ros/indigo/share/pluginlib/msg'], 'xmlrpcpp': ['/opt/ros/indigo/share/xmlrpcpp/msg'], 'rqt_service_caller': ['/opt/ros/indigo/share/rqt_service_caller/msg'], 'rqt_msg': ['/opt/ros/indigo/share/rqt_msg/msg'], 'mavros_extras': ['/opt/ros/indigo/share/mavros_extras/msg'], 'rosnode': ['/opt/ros/indigo/share/rosnode/msg'], 'rqt_pose_view': ['/opt/ros/indigo/share/rqt_pose_view/msg'], 'rosclean': ['/opt/ros/indigo/share/rosclean/msg'], 'bond': ['/opt/ros/indigo/share/bond/msg'], 'self_test': ['/opt/ros/indigo/share/self_test/msg'], 'image_geometry': ['/opt/ros/indigo/share/image_geometry/msg'], 'rospack': ['/opt/ros/indigo/share/rospack/msg'], 'actionlib_msgs': ['/opt/ros/indigo/share/actionlib_msgs/msg'], 'mavros_msgs': ['/opt/ros/indigo/share/mavros_msgs/msg'], 'rqt_image_view': ['/opt/ros/indigo/share/rqt_image_view/msg'], 'roslisp': ['/opt/ros/indigo/share/roslisp/msg'], 'rqt_console': ['/opt/ros/indigo/share/rqt_console/msg'], 'joint_state_publisher': ['/opt/ros/indigo/share/joint_state_publisher/msg'], 'rviz_plugin_tutorials': ['/opt/ros/indigo/share/rviz_plugin_tutorials/msg'], 'tf2_msgs': ['/opt/ros/indigo/share/tf2_msgs/msg'], 'python_qt_binding': ['/opt/ros/indigo/share/python_qt_binding/msg'], 'laser_geometry': ['/opt/ros/indigo/share/laser_geometry/msg'], 'rviz': ['/opt/ros/indigo/share/rviz/msg'], 'gencpp': ['/opt/ros/indigo/share/gencpp/msg'], 'rqt_gui_cpp': ['/opt/ros/indigo/share/rqt_gui_cpp/msg'], 'rqt_bag': ['/opt/ros/indigo/share/rqt_bag/msg'], 'rqt_gui ... (more)

2016-02-08 07:31:58 -0500 received badge  Popular Question (source)
2016-02-07 19:58:31 -0500 commented answer beginner_tutorials/msg/Num.msg: Invalid declaration: int 64 num

Thank you!

2016-02-07 19:16:11 -0500 asked a question beginner_tutorials/msg/Num.msg: Invalid declaration: int 64 num

Whenever I open my terminal I get the following warning ROS_DISTRO was set to 'jade' before. Please make sure that the environment does not mix paths from different distributions.

Also when I run catkin-make I get the following error:

~/catkin_ws$ catkin_make
Base path: /home/vivek/catkin_ws
Source space: /home/vivek/catkin_ws/src
Build space: /home/vivek/catkin_ws/build
Devel space: /home/vivek/catkin_ws/devel
Install space: /home/vivek/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/vivek/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/vivek/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/vivek/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.14
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
/opt/ros/indigo/share/genmsg/cmake/pkg-genmsg.cmake.em:56: error: <class 'genmsg.base.InvalidMsgSpec'>: /home/vivek/catkin_ws/src/beginner_tutorials/msg/Num.msg: Invalid declaration: int 64 num
Traceback (most recent call last):
  File "/usr/bin/empy", line 3276, in <module>
    if __name__ == '__main__': main()
  File "/usr/bin/empy", line 3274, in main
    invoke(sys.argv[1:])
  File "/usr/bin/empy", line 3257, in invoke
    interpreter.wrap(interpreter.file, (file, name))
  File "/usr/bin/empy", line 2262, in wrap
    self.fail(e)
  File "/usr/bin/empy", line 2253, in wrap
    callable(*args)
  File "/usr/bin/empy", line 2326, in file
    self.safe(scanner, done, locals)
  File "/usr/bin/empy", line 2368, in safe
    self.parse(scanner, locals)
  File "/usr/bin/empy", line 2388, in parse
    token.run(self, locals)
  File "/usr/bin/empy", line 1403, in run
    interpreter.execute(self.code, locals)
  File "/usr/bin/empy", line 2565, in execute
    exec(statements, self.globals)
  File "<string>", line 38, in <module>
  File "/opt/ros/indigo/lib/python2.7/dist-packages/genmsg/deps.py", line 45, in find_msg_dependencies_with_type
    spec = genmsg.msg_loader.load_msg_from_file(msg_context, msg_file, full_type_name)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/genmsg/msg_loader.py", line 284, in load_msg_from_file
    raise InvalidMsgSpec('%s: %s'%(file_path, e))
genmsg.base.InvalidMsgSpec: /home/vivek/catkin_ws/src/beginner_tutorials/msg/Num.msg: Invalid declaration: int 64 num
CMake Error at /opt/ros/jade/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  execute_process(/home/vivek/catkin_ws/build/catkin_generated/env_cached.sh
  "/usr/bin/python" "/usr/bin/empy" "--raw-errors" "-F"
  "/home/vivek/catkin_ws/build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py"
  "-o"
  "/home/vivek/catkin_ws/build/beginner_tutorials/cmake/beginner_tutorials-genmsg.cmake"
  "/opt/ros/indigo/share/genmsg/cmake/pkg-genmsg.cmake.em") returned error
  code 1
Call Stack (most recent call first):
  /opt/ros/jade/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
  /opt/ros/indigo/share/genmsg/cmake/genmsg-extras.cmake:300 (em_expand)
  beginner_tutorials/CMakeLists.txt:13 (generate_messages)


-- Configuring incomplete, errors occurred!
See also "/home/vivek/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/vivek/catkin_ws/build/CMakeFiles/CMakeError.log".
make ...
(more)