
anybody can help me with a crossroads that i need to solve. I have a code in python, it receives msg laserscan and transform to pcl, inside the same code need to controller a servo. it moves the hokuyo laser after 400 msg recive to another position, need a 3 or 4 positions 0-180 degrees. After it has 3-4 position return to original position and so successively, i know that with a launch file i could move the servo or command line too. the questions is. I could move servo publishing new position in python code using rosserial. tnx for read and hope someone can help with it.
Originally posted by asmigox on ROS Answers with karma: 5 on 2018-11-01
Post score: 0
Original comments
Comment by PeteBlackerThe3rd on 2018-11-01:
This is definitely possible, but the question is how are you controlling the servo? Does it have it's own dedicated node at the moment. What commands in roslaunch would you use to move it?
Comment by asmigox on 2018-11-01:\
- the servo is conect to arduino mega
- start with a launch, and go on with a loop that i used to have inside the arduino script , but now i think that loop must be empty.
- self.motor_Pub = rospy.Publisher(). node
Comment by asmigox on 2018-11-01:
the node is inside the class that i created for the msg laserscan