ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Kashyap.m94's profile - activity

2020-01-22 06:02:02 -0500 received badge  Famous Question (source)
2019-11-01 22:24:25 -0500 received badge  Notable Question (source)
2019-06-04 12:47:47 -0500 received badge  Famous Question (source)
2018-10-25 04:34:05 -0500 received badge  Famous Question (source)
2018-10-25 00:43:55 -0500 received badge  Famous Question (source)
2018-10-24 05:06:13 -0500 received badge  Student (source)
2018-10-05 18:32:26 -0500 received badge  Taxonomist
2018-09-20 07:55:02 -0500 received badge  Famous Question (source)
2018-06-13 04:41:01 -0500 commented answer Continuous robot arm movement

@jayess I have posted the new code

2018-06-13 04:40:29 -0500 edited answer Continuous robot arm movement

Well, the continuous movement I wanted, was achieved. There were some changes to be done in the code and it was accompli

2018-06-13 04:40:00 -0500 edited answer Continuous robot arm movement

Well, the continuous movement I wanted, was achieved. There were some changes to be done in the code and it was accompli

2018-06-12 16:59:27 -0500 answered a question Continuous robot arm movement

Well, the continuous movement I wanted, was achieved. There were some changes to be done in the code and it was accompli

2018-06-09 11:04:19 -0500 commented answer Continuous robot arm movement

@AndyZe I actually have the gazebo simulation ready and I can see it work

2018-06-09 07:32:46 -0500 commented answer Continuous robot arm movement

@gvdhoorn right now my focus is just the simulation of the bot. That's why I wanted to be sure. I shall look up gazebo_r

2018-06-09 04:24:01 -0500 received badge  Famous Question (source)
2018-06-09 04:22:55 -0500 commented answer Continuous robot arm movement

@gvdhoorn correct me if I am wrong, for applying `jog_arm, I need the drivers of the arm I am controlling? If yes, are t

2018-06-06 21:23:29 -0500 received badge  Famous Question (source)
2018-06-05 07:22:56 -0500 received badge  Notable Question (source)
2018-06-04 20:16:13 -0500 received badge  Notable Question (source)
2018-06-04 19:56:40 -0500 received badge  Popular Question (source)
2018-06-04 16:15:00 -0500 commented question Continuous robot arm movement

@PeteBlackerThe3rd hey, as suggested by you, I have created a new question here

2018-06-04 16:14:03 -0500 asked a question Continuous robot arm movement

Continuous robot arm movement Unlike edge triggered here ,I am now trying to move the arm continuously till the buttons

2018-06-04 16:11:56 -0500 edited question XBox button debouncing

XBox button debouncing Hey, I want to implement button debouncing for my xbox controller and I couldn't find anything m

2018-06-04 14:18:22 -0500 received badge  Notable Question (source)
2018-06-04 12:40:39 -0500 commented answer XBox button debouncing

@PeteBlackerThe3rd Hey, could you kindly check the Edit-3. I am trying something different and am facing a bit of a prob

2018-06-04 12:40:29 -0500 commented answer XBox button debouncing

@PeteBlackerThe3rdHey, could you kindly check the Edit-3. I am trying something different and am facing a bit of a probl

2018-06-04 12:39:19 -0500 edited question XBox button debouncing

XBox button debouncing Hey, I want to implement button debouncing for my xbox controller and I couldn't find anything m

2018-06-04 12:24:14 -0500 marked best answer moveit_commander_cmdline.py Error

Hey,

I was going through the Moveit tutorials here: Moveit Commander Scripting and when I tried launching rosrun moveit_commander moveit_commander_cmdline.py, I am getting the following error:

kashyap@kashyap-Lenovo-ideapad-320-15IKB:~$ rosrun moveit_commander moveit_commander_cmdline.py
Failed to import pyassimp, see https://github.com/ros-planning/moveit/issues/86 for more info
Traceback (most recent call last):
  File "/home/kashyap/catkin_ws/src/moveit/moveit_commander/bin/moveit_commander_cmdline.py", line 156, in <module>
    run_interactive(opt.group_name)
  File "/home/kashyap/catkin_ws/src/moveit/moveit_commander/bin/moveit_commander_cmdline.py", line 81, in run_interactive
    c = MoveGroupCommandInterpreter()
  File "/home/kashyap/catkin_ws/src/moveit/moveit_commander/src/moveit_commander/interpreter.py", line 64, in __init__
    self._planning_scene_interface = PlanningSceneInterface()
  File "/home/kashyap/catkin_ws/src/moveit/moveit_commander/src/moveit_commander/planning_scene_interface.py", line 62, in __init__
    self._psi = _moveit_planning_scene_interface.PlanningSceneInterface()
Boost.Python.ArgumentError: Python argument types in
    PlanningSceneInterface.__init__(PlanningSceneInterface)
did not match C++ signature:
    __init__(_object*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)

Could anyone guide me as to what this error means? Thanks

2018-06-04 10:22:36 -0500 commented answer moveit_commander_cmdline.py Error

Thanks, the fix worked

2018-06-01 09:59:12 -0500 received badge  Popular Question (source)
2018-05-31 07:11:01 -0500 asked a question moveit_commander_cmdline.py Error

moveit_commander_cmdline.py Error Hey, I was going through the Moveit tutorials here: Moveit Commander Scripting and wh

2018-05-31 05:33:08 -0500 received badge  Famous Question (source)
2018-05-29 09:48:59 -0500 commented answer XBox button debouncing

Oh damn. Yes, you're right. Thanks for the help. I will apply asyncExecute too and try the same. Thanks again.

2018-05-29 09:47:38 -0500 marked best answer XBox button debouncing

Hey,

I want to implement button debouncing for my xbox controller and I couldn't find anything much helpful till now. All the info that is available on google is related to microcontrollers. Is there an option or a way button debouncing can be implemented in a ros python code?

Thanks in advance


Edit: C:\fakepath\Screenshot from 2018-05-27 19-00-33.png

@PeteBlackerThe3rd In the pic you can see that the joint changed once, when I gave the input through the controller, but instead of stopping at the first 'Plan complete', the loop ran for 7 more times, which causes a bit of delay in processing the second instruction given through the controller. Could you maybe point out my mistake or maybe guide me through the right process so that I can detect my mistake?

Edit-2 Code screenshot: I know it's not suggested to take a screen shot of the code and post it here, but I just wanted to make sure that the indentations I am having in my code are clear, since indentations are a not always correct here Code

Edit -2

This is my code

#!/usr/bin/env python

import sys
import copy
import rospy
import moveit_commander
from moveit_msgs.msg import *
from geometry_msgs.msg import *
from sensor_msgs.msg import *
import time

j1 = 0
a = 0
flag1 = 0
flag2 = 0


def callback(data, group1):
    global a, flag1, flag2, j1
    if ((data.buttons[0]==1) and (data.axes[6]==1)):
        if (flag1 == 0):
            a += 1
            flag1 = 1
            j1 = (int(a))*0.1
            print "Value of Joint 1 is: %s " %j1
            if (j1 >= 3.1): 
                group1_variable_values[0] = 3.1
                print "Limit reached joint 1"
            else:
                print "changing joint 1"
                print "Plan completed"
        group1_variable_values[0] = j1
        group1.set_joint_value_target(group1_variable_values)
        plan2 = group1.plan()
        execute2= group1.execute(plan2)
        rospy.sleep(1)
        print "plan complete"
    else:
        flag1 = 0

def move_group_python_interface():
    global group1_variable_values, robot
    moveit_commander.roscpp_initialize(sys.argv)
    rospy.init_node('move_group_python_interface', anonymous=True)
    robot = moveit_commander.RobotCommander()
    group1 = moveit_commander.MoveGroupCommander("igus_planning")
    group1_variable_values = group1.get_current_joint_values()
    display_trajectory_publisher = rospy.Publisher('/move_group/display_planned_path',
              moveit_msgs.msg.DisplayTrajectory,queue_size=50)
    rospy.Subscriber("joy", Joy, callback, callback_args=group1)
    rospy.spin()


if __name__=='__main__':
    try:
           move_group_python_interface()
    except rospy.ROSInterruptException:
        pass
2018-05-29 08:23:58 -0500 commented answer XBox button debouncing

@PeteBlackerThe3rd Hey, thanks for the observation. I have updated both the code and the sceen shot of the code above un

2018-05-29 08:22:32 -0500 edited question XBox button debouncing

XBox button debouncing Hey, I want to implement button debouncing for my xbox controller and I couldn't find anything m

2018-05-28 04:24:48 -0500 received badge  Notable Question (source)
2018-05-27 12:51:08 -0500 received badge  Famous Question (source)
2018-05-27 12:48:37 -0500 edited question XBox button debouncing

XBox button debouncing Hey, I want to implement button debouncing for my xbox controller and I couldn't find anything m

2018-05-27 12:45:04 -0500 received badge  Popular Question (source)
2018-05-27 12:37:32 -0500 commented answer XBox button debouncing

The indentation is there. Everything is with in the if (flag1 == 0): loop. I did correct the indentation below. Maybe yo

2018-05-27 12:22:51 -0500 edited answer XBox button debouncing

C:\fakepath\Screenshot from 2018-05-27 19-00-33.png @PeteBlackerThe3rd In the pic you can see that the joint changed on

2018-05-27 12:21:17 -0500 edited answer XBox button debouncing

C:\fakepath\Screenshot from 2018-05-27 19-00-33.png @PeteBlackerThe3rd In the pic you can see that the joint changed on

2018-05-27 12:19:34 -0500 commented answer XBox button debouncing

I edited my previous comment with the code, and you actually did suggest me the edge triggering before and I did apply i

2018-05-27 12:18:23 -0500 edited answer XBox button debouncing

C:\fakepath\Screenshot from 2018-05-27 19-00-33.png @PeteBlackerThe3rd In the pic you can see that the joint changed on

2018-05-27 12:06:39 -0500 answered a question XBox button debouncing

C:\fakepath\Screenshot from 2018-05-27 19-00-33.png @PeteBlackerThe3rd In the pic you can see that the joint changed on